mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-26 02:07:28 +08:00
V4.14.9 fix issue (#6573)
* fix: session error * fix: session error * fix: workflow runtime and add e2b
This commit is contained in:
@@ -845,10 +845,12 @@ const createChatCompletion = async ({
|
||||
|
||||
const response = await ai.chat.completions.create(body, {
|
||||
...options,
|
||||
...(modelData.requestUrl ? { path: modelData.requestUrl } : {}),
|
||||
...(modelData.requestUrl && !userKey ? { path: modelData.requestUrl } : {}),
|
||||
headers: {
|
||||
...options?.headers,
|
||||
...(modelData.requestAuth ? { Authorization: `Bearer ${modelData.requestAuth}` } : {})
|
||||
...(modelData.requestAuth && !userKey
|
||||
? { Authorization: `Bearer ${modelData.requestAuth}` }
|
||||
: {})
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user