mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-03 21:48:02 +00:00
feat: openai base url
This commit is contained in:
@@ -8,7 +8,8 @@ import mongoose from 'mongoose';
|
||||
|
||||
export const getOpenAIApi = (apiKey: string) => {
|
||||
const configuration = new Configuration({
|
||||
apiKey
|
||||
apiKey,
|
||||
basePath: process.env.OPENAI_BASE_URL || 'https://api.openai.com/v1'
|
||||
});
|
||||
|
||||
return new OpenAIApi(configuration, undefined);
|
||||
|
Reference in New Issue
Block a user