mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
fix:custom model setting bug (#227)
* fix:custom model setting bug * refactor: consolidate aiProvider checks for cleaner code --------- Co-authored-by: dayuan.jiang <jdy.toh@gmail.com>
This commit is contained in:
@@ -801,12 +801,14 @@ Please retry with an adjusted search pattern or use display_diagram if retries a
|
||||
"x-access-code": config.accessCode,
|
||||
...(config.aiProvider && {
|
||||
"x-ai-provider": config.aiProvider,
|
||||
...(config.aiBaseUrl && {
|
||||
"x-ai-base-url": config.aiBaseUrl,
|
||||
}),
|
||||
...(config.aiApiKey && {
|
||||
"x-ai-api-key": config.aiApiKey,
|
||||
}),
|
||||
...(config.aiModel && { "x-ai-model": config.aiModel }),
|
||||
}),
|
||||
...(config.aiBaseUrl && {
|
||||
"x-ai-base-url": config.aiBaseUrl,
|
||||
}),
|
||||
...(config.aiApiKey && { "x-ai-api-key": config.aiApiKey }),
|
||||
...(config.aiModel && { "x-ai-model": config.aiModel }),
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user