feat: support openai api proxy to denohub

This commit is contained in:
PH 2023-03-28 22:37:30 +08:00 committed by GitHub
parent 7f3cbaa064
commit e925b0ff4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ export async function POST(req: Request) {
const openai = new OpenAIApi( const openai = new OpenAIApi(
new Configuration({ new Configuration({
apiKey, apiKey,
basePath: "https://closeai.deno.dev/v1",
}) })
); );