Skip to content

Commit

Permalink
feat: 修改openai example
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Sep 22, 2023
1 parent cd4dce2 commit 1fe7530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/openai-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import OpenAI from 'openai';

const openai = new OpenAI({
apiKey: 'dummy',
baseURL: 'http://127.0.0.1:3000/api'
baseURL: 'https://hf4all-bingo-api.hf.space/api/v1' // 这里改成你自己部署的服务地址
});

async function start() {
Expand Down
2 changes: 1 addition & 1 deletion tests/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import OpenAI from 'openai';

const openai = new OpenAI({
apiKey: 'dummy',
baseURL: 'https://bing.github1s.tk/api/openai/v1' // 这里改成你自己部署的服务地址
baseURL: 'https://hf4all-bingo-api.hf.space/api/v1' // 这里改成你自己部署的服务地址
});

async function start() {
Expand Down

0 comments on commit 1fe7530

Please sign in to comment.