Skip to content

Commit

Permalink
feat: openai 支持网页端调用
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Sep 22, 2023
1 parent 5b7b6dc commit 7c5dbce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
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: 'http://127.0.0.1:3000/api'
baseURL: 'https://bing.github1s.tk/api/openai/v1' // 这里改成你自己部署的服务地址
});

async function start() {
Expand Down

0 comments on commit 7c5dbce

Please sign in to comment.