perf: memo GridCard, fuse save fns, fix slash tab active color
This commit is contained in:
@@ -24,6 +24,8 @@ export type AiGatewayProvider =
|
||||
| 'lmstudio'
|
||||
| 'anthropic'
|
||||
| 'anthropic_custom'
|
||||
| 'custom_openai'
|
||||
| 'custom_anthropic'
|
||||
|
||||
export interface ResolvedAiRoute {
|
||||
lane: AiFeatureLane
|
||||
@@ -40,6 +42,7 @@ export const VALID_PROVIDERS = new Set<string>([
|
||||
'ollama', 'openai', 'google', 'minimax', 'glm', 'custom',
|
||||
'deepseek', 'openrouter', 'mistral', 'zai', 'lmstudio',
|
||||
'anthropic', 'anthropic_custom',
|
||||
'custom_openai', 'custom_anthropic',
|
||||
])
|
||||
|
||||
const PROVIDER_MODEL_DEFAULTS: Record<string, { model: string; embeddingModel: string }> = {
|
||||
@@ -56,6 +59,8 @@ const PROVIDER_MODEL_DEFAULTS: Record<string, { model: string; embeddingModel: s
|
||||
glm: { model: 'glm-4', embeddingModel: 'embedding-2' },
|
||||
lmstudio: { model: '', embeddingModel: '' },
|
||||
custom: { model: '', embeddingModel: '' },
|
||||
custom_openai: { model: 'gpt-4o-mini', embeddingModel: 'text-embedding-3-small' },
|
||||
custom_anthropic: { model: 'claude-sonnet-4-6-20250514', embeddingModel: '' },
|
||||
}
|
||||
|
||||
function pick(config: Record<string, string>, key: string): string | undefined {
|
||||
|
||||
Reference in New Issue
Block a user