mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-11 08:19:01 +08:00
fix: type check
This commit is contained in:
parent
a471e78a9d
commit
39d1c71819
@ -98,10 +98,6 @@ function getMainProcessFormatContext(): ProviderFormatContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const mainProcessSdkContext: AiSdkConfigContext = {
|
const mainProcessSdkContext: AiSdkConfigContext = {
|
||||||
getRotatedApiKey: (provider) => {
|
|
||||||
const keys = provider.apiKey.split(',').map((k) => k.trim())
|
|
||||||
return keys[0] || provider.apiKey
|
|
||||||
},
|
|
||||||
fetch: net.fetch as typeof globalThis.fetch
|
fetch: net.fetch as typeof globalThis.fetch
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user