zen: new inference
This commit is contained in:
@@ -201,7 +201,10 @@ export async function handler(
|
|||||||
if (v === "$model") return headers.set(k, model)
|
if (v === "$model") return headers.set(k, model)
|
||||||
if (v === "$request") return headers.set(k, requestId)
|
if (v === "$request") return headers.set(k, requestId)
|
||||||
if (v === "$project") return headers.set(k, projectId)
|
if (v === "$project") return headers.set(k, projectId)
|
||||||
if (v === "$workspace" && authInfo?.workspaceID) return headers.set(k, authInfo.workspaceID)
|
if (v === "$workspace") {
|
||||||
|
if (authInfo?.workspaceID) headers.set(k, authInfo.workspaceID)
|
||||||
|
return
|
||||||
|
}
|
||||||
headers.set(k, v)
|
headers.set(k, v)
|
||||||
})
|
})
|
||||||
headers.delete("host")
|
headers.delete("host")
|
||||||
|
|||||||
Reference in New Issue
Block a user