chore: generate
This commit is contained in:
@@ -35,9 +35,7 @@ function isKimiFamily(model: Provider.Model) {
|
|||||||
)
|
)
|
||||||
return true
|
return true
|
||||||
const url = model.api.url.toLowerCase()
|
const url = model.api.url.toLowerCase()
|
||||||
return ["api.kimi.com", "api.moonshot.ai", "api.moonshot.cn", "api.moonshotai.cn"].some((host) =>
|
return ["api.kimi.com", "api.moonshot.ai", "api.moonshot.cn", "api.moonshotai.cn"].some((host) => url.includes(host))
|
||||||
url.includes(host),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Maps npm package to the key the AI SDK expects for providerOptions
|
// Maps npm package to the key the AI SDK expects for providerOptions
|
||||||
|
|||||||
Reference in New Issue
Block a user