mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 21:42:27 +08:00
fix: type check
This commit is contained in:
parent
a471e78a9d
commit
39d1c71819
@ -98,10 +98,6 @@ function getMainProcessFormatContext(): ProviderFormatContext {
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user