fix: type check

This commit is contained in:
suyao 2025-12-05 13:59:00 +08:00
parent a471e78a9d
commit 39d1c71819
No known key found for this signature in database

View File

@ -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
}