feat(custom-openai): use apiKey instead of openAIApiKey
This commit is contained in:
parent
77870b39cc
commit
829b4e7134
7 changed files with 8 additions and 8 deletions
|
|
@ -81,7 +81,7 @@ export const POST = async (req: Request) => {
|
|||
if (body.chatModel?.provider === 'custom_openai') {
|
||||
llm = new ChatOpenAI({
|
||||
modelName: body.chatModel?.name || getCustomOpenaiModelName(),
|
||||
openAIApiKey:
|
||||
apiKey:
|
||||
body.chatModel?.customOpenAIKey || getCustomOpenaiApiKey(),
|
||||
temperature: 0.7,
|
||||
configuration: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue