Closed yanshanlangren closed 9 months ago
Are you in China?I occurs the same problem
You can use basePath to replace https://api.openai.com/v1
for example:
import { Configuration } from "openai";
const configuration = new Configuration({
apiKey: OPENAI_API_KEY,
basePath: "https://closeai.deno.dev/v1",
});
Describe the feature or improvement you're requesting
I access api.openai.com via proxy. When I try to send request by submitting form in the project, application run out with error:
I tried the URL in web browser with proxy, and got 200 response.
I read source code but did not found anywhere to add proxy config, how can I do that? Please.
Additional context
No response