fix: lint

This commit is contained in:
suyao 2026-01-03 05:47:12 +08:00
parent 00177d26cb
commit 56dfd1de1e
No known key found for this signature in database
4 changed files with 6 additions and 11 deletions

View File

@ -6,7 +6,7 @@
*/
import { formatPrivateKey, hasProviderConfig, ProviderConfigFactory } from '@cherrystudio/ai-core/provider'
import { MinimalProvider, SystemProviderIds } from '@shared/types'
import { type MinimalProvider, SystemProviderIds } from '@shared/types'
import { defaultAppHeaders } from '@shared/utils'
import {
isAnthropicProvider,

View File

@ -6,7 +6,7 @@
*/
import { hasProviderConfigByAlias, type ProviderId, resolveProviderConfigId } from '@cherrystudio/ai-core/provider'
import { MinimalModel, MinimalProvider } from '@shared/types'
import type { MinimalModel, MinimalProvider } from '@shared/types'
import { isAzureOpenAIProvider, isAzureResponsesEndpoint, isNewApiProvider } from '@shared/utils/provider'
import {

View File

@ -30,9 +30,10 @@ import {
import { COPILOT_DEFAULT_HEADERS } from '@shared/aiCore/constant'
import { isGemini3ModelId } from '@shared/aiCore/middlewares'
import type { MinimalProvider } from '@shared/types'
import { SystemProviderIds } from '@shared/types'
import { defaultAppHeaders } from '@shared/utils'
import { isAnthropicProvider, isGeminiProvider, isOpenAIProvider } from '@shared/utils/provider'
import { Provider, SystemProviderIds } from '@types'
import type { Provider } from '@types'
import type { ImagePart, JSONValue, ModelMessage, Provider as AiSdkProvider, TextPart, Tool as AiSdkTool } from 'ai'
import { simulateStreamingMiddleware, stepCountIs, tool, wrapLanguageModel, zodSchema } from 'ai'
import { net } from 'electron'

View File

@ -1,12 +1,6 @@
import type OpenAI from '@cherrystudio/openai'
import {
isSystemProviderId,
MinimalProvider,
ProviderType,
SystemProviderId,
SystemProviderIds,
SystemProviderIdTypeMap
} from '@shared/types'
import type { MinimalProvider, ProviderType, SystemProviderId, SystemProviderIdTypeMap } from '@shared/types'
import { isSystemProviderId, SystemProviderIds } from '@shared/types'
import type { Model } from '@types'
import type { OpenAIVerbosity } from './aiCoreTypes'