V4.14.9 fix issue (#6573)

* fix: session error

* fix: session error

* fix: workflow runtime and add e2b
This commit is contained in:
Archer
2026-03-19 11:15:14 +08:00
committed by GitHub
parent f057a2ae19
commit 9959707fb3
22 changed files with 5497 additions and 2798 deletions
+4 -2
View File
@@ -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}` }
: {})
}
});