Giter VIP home page Giter VIP logo

curious-black-cat's Introduction

好奇的黑猫

📺bilibili • 🌐 Github • ▶️ YouTube

👋 如果喜欢,右上角请给一个小星星 ⭐

Read this in English.

介绍

这是一个 OpenAI Assistance API 的使用演示,包含了前后端完整代码。

背景

在我的童年,有一只黑猫给了我很多快乐。

他的眼睛就像装了一整个宇宙,他黑色的毛发在阳光照耀下会泛出一点儿紫金色,特好看。

这个人巨能闹腾,叫声嘹亮刺耳,活力十足,白天邻居在后山上都能看到他。

每天放学后推开门,他就从我家平台上跑下来,找我玩儿。

可惜他后来误吃了邻居家的老鼠药,早早地离开了。

这个项目是用 OpenAI 的 Assistant API 构建的“好奇的黑猫”。

他对世界充满了好奇,每天都会出现在**的一个城市,如果我想他了,他还可以给我发送他现在的照片。

我知道现在的技术对未来有着非常宏大辽阔的意义,甚至未来的人在像我一样回忆童年时,怀念的可能是陪伴他童年的某个 AI 智能体。

而在这个周末的晚上,我只是突然又想念起我童年的老朋友了。

使用

API Key

首先修改.env 的 API KEY

Server

  1. 安装 anaconda 或 miniconda:自行搜索安装方法
  2. 创建 Python 虚拟环境
conda create -n cat python=3.11
  1. 进入 Python 虚拟环境
conda activate cat
  1. 安装项目依赖
cd server
pip install -r requirements.txt
  1. 启动后端 server
python run.py

Web

  1. 安装 Node.js:自行搜索安装方法
  2. 安装依赖
cd web
npm i
# or
yarn
  1. 运行前端 web
npm run dev
# or
yarn dev

网页使用

打开浏览器,输入地址:127.0.0.1:3000

注意

如果使用 WSL,请在代码中相应地修改 127.0.0.1 为主机 IP 地址

curious-black-cat's People

Contributors

laocheyujie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.