qwen optimizations it works good now
This commit is contained in:
@@ -23,7 +23,8 @@ export namespace ProviderTransform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const msg of unique([...system, ...final])) {
|
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) {
|
if (shouldUseContentOptions) {
|
||||||
const lastContent = msg.content[msg.content.length - 1]
|
const lastContent = msg.content[msg.content.length - 1]
|
||||||
@@ -46,7 +47,7 @@ export namespace ProviderTransform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function temperature(_providerID: string, modelID: string) {
|
export function temperature(_providerID: string, modelID: string) {
|
||||||
if (modelID.includes("qwen")) return 0.55
|
if (modelID.toLowerCase().includes("qwen")) return 0.55
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,12 +64,12 @@ export namespace ToolRegistry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function enabled(_providerID: string, modelID: string): Record<string, boolean> {
|
export function enabled(_providerID: string, modelID: string): Record<string, boolean> {
|
||||||
if (modelID.includes("claude")) {
|
if (modelID.toLowerCase().includes("claude")) {
|
||||||
return {
|
return {
|
||||||
patch: false,
|
patch: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (modelID.includes("qwen")) {
|
if (modelID.toLowerCase().includes("qwen")) {
|
||||||
return {
|
return {
|
||||||
patch: false,
|
patch: false,
|
||||||
todowrite: false,
|
todowrite: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user