|
|
@@ -23,8 +23,9 @@ export namespace ProviderTransform {
|
|
|
}
|
|
|
|
|
|
for (const msg of unique([...system, ...final])) {
|
|
|
- const shouldUseContentOptions = providerID !== "anthropic" && Array.isArray(msg.content) && msg.content.length > 0
|
|
|
-
|
|
|
+ const shouldUseContentOptions =
|
|
|
+ providerID !== "anthropic" && Array.isArray(msg.content) && msg.content.length > 0
|
|
|
+
|
|
|
if (shouldUseContentOptions) {
|
|
|
const lastContent = msg.content[msg.content.length - 1]
|
|
|
if (lastContent && typeof lastContent === "object") {
|
|
|
@@ -35,7 +36,7 @@ export namespace ProviderTransform {
|
|
|
continue
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
msg.providerOptions = {
|
|
|
...msg.providerOptions,
|
|
|
...providerOptions,
|
|
|
@@ -46,7 +47,7 @@ export namespace ProviderTransform {
|
|
|
}
|
|
|
|
|
|
export function temperature(_providerID: string, modelID: string) {
|
|
|
- if (modelID.includes("qwen")) return 0.55
|
|
|
+ if (modelID.toLowerCase().includes("qwen")) return 0.55
|
|
|
return 0
|
|
|
}
|
|
|
}
|