/**
 * Creation 模块类型定义
 */
import type { LanguageModelV2Middleware } from '@ai-sdk/provider'

import type { ProviderId, ProviderSettingsMap } from '../providers/types'

export interface ModelConfig<T extends ProviderId = ProviderId> {
  providerId: T
  modelId: string
  providerSettings: ProviderSettingsMap[T] & { mode?: 'chat' | 'responses' }
  middlewares?: LanguageModelV2Middleware[]
  // 额外模型参数
  extraModelConfig?: Record<string, any>
}
