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

View File

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