We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82591b3 commit a0dfef7Copy full SHA for a0dfef7
src/providers/openai/api.ts
@@ -1,9 +1,7 @@
1
import { ProviderAPIConfig } from '../types';
2
3
const OpenAIAPIConfig: ProviderAPIConfig = {
4
- getBaseURL: () => {
5
- return 'https://api.openai.com/v1';
6
- },
+ getBaseURL: () => 'https://api.openai.com/v1',
7
headers: ({ providerOptions, fn }) => {
8
const headersObj: Record<string, string> = {
9
Authorization: `Bearer ${providerOptions.apiKey}`,
0 commit comments