Skip to content

Commit

Permalink
fix(DevTools): chat base
Browse files Browse the repository at this point in the history
chat base
  • Loading branch information
snomiao committed Oct 14, 2023
1 parent 0085509 commit ec83723
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DevTools/Chat.ts
Expand Up @@ -7,7 +7,8 @@ import { Readable } from "stream";
import { TextDecoderStream, TransformStream, WritableStream } from "stream/web";

const apiKey = process.env.OPENAI_API_KEY;
const ai = new OpenAIApi(new Configuration({ apiKey }));
const base = process.env.OPENAI_BASE ?? undefined;
const ai = new OpenAIApi(new Configuration({ apiKey }),base);
let ac = new AbortController();
console.log("chat loaded");

Expand Down

0 comments on commit ec83723

Please sign in to comment.