mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-03 21:48:02 +00:00
fix: 反向代理
This commit is contained in:
@@ -9,10 +9,10 @@ import mongoose from 'mongoose';
|
||||
export const getOpenAIApi = (apiKey: string) => {
|
||||
const configuration = new Configuration({
|
||||
apiKey,
|
||||
basePath: process.env.OPENAI_BASE_URL || 'https://api.openai.com/v1'
|
||||
basePath: process.env.OPENAI_BASE_URL
|
||||
});
|
||||
|
||||
return new OpenAIApi(configuration, undefined);
|
||||
return new OpenAIApi(configuration);
|
||||
};
|
||||
|
||||
// 模型使用权校验
|
||||
|
Reference in New Issue
Block a user