feat(custom-openai): use apiKey instead of openAIApiKey

This commit is contained in:
ItzCrazyKns
2025-07-19 16:14:46 +05:30
parent 49fafaa096
commit df33229934
7 changed files with 8 additions and 8 deletions

View File

@ -49,7 +49,7 @@ export const POST = async (req: Request) => {
if (body.chatModel?.provider === 'custom_openai') {
llm = new ChatOpenAI({
openAIApiKey: getCustomOpenaiApiKey(),
apiKey: getCustomOpenaiApiKey(),
modelName: getCustomOpenaiModelName(),
temperature: 0.7,
configuration: {