refactor: Clean up more unused code
This commit is contained in:
parent
bca38fa221
commit
7434d98fc1
3 changed files with 1 additions and 26 deletions
|
|
@ -15,9 +15,7 @@ export type ProviderMeta = {
|
|||
title: string;
|
||||
link: string;
|
||||
description: string;
|
||||
apiKeyName: string;
|
||||
placeholder: string;
|
||||
docsLink: string;
|
||||
};
|
||||
|
||||
export const UrlCitationSchema = z.object({
|
||||
|
|
@ -43,48 +41,36 @@ export const PROVIDER_META: Record<Provider, ProviderMeta> = {
|
|||
title: 'OpenAI',
|
||||
link: 'https://openai.com',
|
||||
description: 'GPT models, DALL-E, and Whisper from OpenAI',
|
||||
apiKeyName: 'OpenAI API Key',
|
||||
placeholder: 'sk-...',
|
||||
docsLink: 'https://platform.openai.com/docs',
|
||||
},
|
||||
[Provider.Anthropic]: {
|
||||
title: 'Anthropic',
|
||||
link: 'https://anthropic.com',
|
||||
description: 'Claude models from Anthropic',
|
||||
apiKeyName: 'Anthropic API Key',
|
||||
placeholder: 'sk-ant-...',
|
||||
docsLink: 'https://docs.anthropic.com',
|
||||
},
|
||||
[Provider.Gemini]: {
|
||||
title: 'Google Gemini',
|
||||
link: 'https://ai.google.dev/docs',
|
||||
description: 'Gemini models from Google',
|
||||
apiKeyName: 'Google AI API Key',
|
||||
placeholder: 'AIza...',
|
||||
docsLink: 'https://ai.google.dev/docs',
|
||||
},
|
||||
[Provider.Mistral]: {
|
||||
title: 'Mistral',
|
||||
link: 'https://mistral.ai',
|
||||
description: 'Mistral models and embeddings',
|
||||
apiKeyName: 'Mistral API Key',
|
||||
placeholder: 'mistral-...',
|
||||
docsLink: 'https://docs.mistral.ai',
|
||||
},
|
||||
[Provider.Cohere]: {
|
||||
title: 'Cohere',
|
||||
link: 'https://cohere.com',
|
||||
description: 'Command models and embeddings from Cohere',
|
||||
apiKeyName: 'Cohere API Key',
|
||||
placeholder: 'co_...',
|
||||
docsLink: 'https://docs.cohere.com',
|
||||
},
|
||||
[Provider.OpenRouter]: {
|
||||
title: 'OpenRouter',
|
||||
link: 'https://openrouter.ai',
|
||||
description: 'Access to 300+ models through OpenRouter',
|
||||
apiKeyName: 'OpenRouter API Key',
|
||||
placeholder: 'sk-or-...',
|
||||
docsLink: 'https://openrouter.ai/docs',
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -16,14 +16,3 @@ export function supportsToolCalls(model: ModelInfo): boolean {
|
|||
return model.capabilities.functionCalling;
|
||||
}
|
||||
|
||||
export function getImageSupportedModels(models: ModelInfo[]): ModelInfo[] {
|
||||
return models.filter(supportsImages);
|
||||
}
|
||||
|
||||
export function getReasoningModels(models: ModelInfo[]): ModelInfo[] {
|
||||
return models.filter(supportsReasoning);
|
||||
}
|
||||
|
||||
export function getStreamingModels(models: ModelInfo[]): ModelInfo[] {
|
||||
return models.filter(supportsStreaming);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@
|
|||
</Tooltip>
|
||||
{/if}
|
||||
|
||||
{#if model.capabilities.toolCalls}
|
||||
{#if model.capabilities.functionCalling}
|
||||
<Tooltip>
|
||||
{#snippet trigger(tooltip)}
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue