ask-llm-providers 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +92 -0
- data/lib/ask/llm/aliases.json +11 -0
- data/lib/ask/llm/aliases.rb +62 -0
- data/lib/ask/llm/catalog.rb +194 -0
- data/lib/ask/llm/models/anthropic.json +188 -0
- data/lib/ask/llm/models/bedrock.json +1 -0
- data/lib/ask/llm/models/cloudflare.json +1 -0
- data/lib/ask/llm/models/deepseek.json +85 -0
- data/lib/ask/llm/models/gemini.json +151 -0
- data/lib/ask/llm/models/mimo.json +22 -0
- data/lib/ask/llm/models/mistral.json +62 -0
- data/lib/ask/llm/models/ollama.json +136 -0
- data/lib/ask/llm/models/openai.json +294 -0
- data/lib/ask/llm/models/opencode.json +189 -0
- data/lib/ask/llm/models/opencode_go.json +149 -0
- data/lib/ask/llm/models/openrouter.json +115 -0
- data/lib/ask/llm/models_schema.json +74 -0
- data/lib/ask/llm/version.rb +1 -1
- data/lib/ask-llm-providers.rb +4 -17
- metadata +24 -5
- data/lib/ask/llm/models/openai.rb +0 -69
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# Model definitions for OpenAI and compatible providers.
|
|
4
|
-
# Registered on gem load via Ask::Models.register.
|
|
5
|
-
module Ask
|
|
6
|
-
module LLM
|
|
7
|
-
module Models
|
|
8
|
-
OPENAI_MODELS = [
|
|
9
|
-
{ id: "gpt-4o", family: "gpt4o", capabilities: %w[chat streaming function_calling structured_output vision], context: 128000, output: 16384 },
|
|
10
|
-
{ id: "gpt-4o-mini", family: "gpt4o_mini", capabilities: %w[chat streaming function_calling structured_output vision], context: 128000, output: 16384 },
|
|
11
|
-
{ id: "gpt-4.1", family: "gpt41", capabilities: %w[chat streaming function_calling structured_output vision], context: 1047576, output: 32768 },
|
|
12
|
-
{ id: "gpt-4.1-mini", family: "gpt41_mini", capabilities: %w[chat streaming function_calling structured_output vision], context: 1047576, output: 32768 },
|
|
13
|
-
{ id: "gpt-4.1-nano", family: "gpt41_nano", capabilities: %w[chat streaming function_calling structured_output vision], context: 1047576, output: 32768 },
|
|
14
|
-
{ id: "gpt-4-turbo", family: "gpt4_turbo", capabilities: %w[chat streaming function_calling vision], context: 128000, output: 4096 },
|
|
15
|
-
{ id: "gpt-4", family: "gpt4", capabilities: %w[chat streaming function_calling], context: 8192, output: 8192 },
|
|
16
|
-
{ id: "o1", family: "o1", capabilities: %w[chat streaming function_calling structured_output reasoning], context: 200000, output: 100000 },
|
|
17
|
-
{ id: "o1-mini", family: "o1_mini", capabilities: %w[chat streaming function_calling reasoning], context: 128000, output: 65536 },
|
|
18
|
-
{ id: "o3-mini", family: "o3_mini", capabilities: %w[chat streaming function_calling structured_output reasoning], context: 200000, output: 100000 },
|
|
19
|
-
{ id: "gpt-4o-audio-preview", family: "gpt4o_audio", capabilities: %w[chat streaming audio], context: 128000 },
|
|
20
|
-
{ id: "gpt-4o-realtime-preview", family: "gpt4o_realtime", capabilities: %w[chat streaming audio], context: 128000 },
|
|
21
|
-
{ id: "gpt-4o-mini-realtime-preview", family: "gpt4o_mini_realtime", capabilities: %w[chat streaming audio], context: 128000 },
|
|
22
|
-
{ id: "gpt-4.5-preview", family: "gpt45", capabilities: %w[chat streaming function_calling structured_output vision], context: 128000, output: 16384 },
|
|
23
|
-
{ id: "text-embedding-3-large", family: "embedding3_large", capabilities: %w[embed], context: 8191 },
|
|
24
|
-
{ id: "text-embedding-3-small", family: "embedding3_small", capabilities: %w[embed], context: 8191 },
|
|
25
|
-
{ id: "whisper-1", family: "whisper", capabilities: %w[transcribe] },
|
|
26
|
-
{ id: "tts-1", family: "tts1", capabilities: %w[tts] },
|
|
27
|
-
{ id: "tts-1-hd", family: "tts1_hd", capabilities: %w[tts] },
|
|
28
|
-
{ id: "dall-e-3", family: "dall_e", capabilities: %w[paint] },
|
|
29
|
-
{ id: "dall-e-2", family: "dall_e", capabilities: %w[paint] }
|
|
30
|
-
].freeze
|
|
31
|
-
|
|
32
|
-
ANTHROPIC_MODELS = [
|
|
33
|
-
{ id: "claude-sonnet-4-5", family: "claude_sonnet", capabilities: %w[chat streaming function_calling vision thinking prompt_caching], context: 200000, output: 8192 },
|
|
34
|
-
{ id: "claude-sonnet-4", family: "claude_sonnet", capabilities: %w[chat streaming function_calling vision thinking prompt_caching], context: 200000, output: 8192 },
|
|
35
|
-
{ id: "claude-4-opus", family: "claude_opus", capabilities: %w[chat streaming function_calling vision thinking prompt_caching], context: 200000, output: 8192 },
|
|
36
|
-
{ id: "claude-3.5-sonnet", family: "claude_sonnet", capabilities: %w[chat streaming function_calling vision thinking], context: 200000, output: 8192 },
|
|
37
|
-
{ id: "claude-3.5-haiku", family: "claude_haiku", capabilities: %w[chat streaming function_calling vision thinking], context: 200000, output: 8192 },
|
|
38
|
-
{ id: "claude-3-opus", family: "claude_opus", capabilities: %w[chat streaming function_calling vision thinking], context: 200000, output: 4096 },
|
|
39
|
-
{ id: "claude-3-sonnet", family: "claude_sonnet", capabilities: %w[chat streaming function_calling vision], context: 200000, output: 4096 },
|
|
40
|
-
{ id: "claude-3-haiku", family: "claude_haiku", capabilities: %w[chat streaming function_calling vision], context: 200000, output: 4096 }
|
|
41
|
-
].freeze
|
|
42
|
-
|
|
43
|
-
GOOGLE_MODELS = [
|
|
44
|
-
{ id: "gemini-2.5-pro", family: "gemini", capabilities: %w[chat streaming function_calling structured_output vision reasoning], context: 1048576, output: 65536 },
|
|
45
|
-
{ id: "gemini-2.5-flash", family: "gemini", capabilities: %w[chat streaming function_calling structured_output vision], context: 1048576, output: 65536 },
|
|
46
|
-
{ id: "gemini-2.0-flash", family: "gemini", capabilities: %w[chat streaming function_calling structured_output vision], context: 1048576, output: 8192 },
|
|
47
|
-
{ id: "gemini-1.5-pro", family: "gemini", capabilities: %w[chat streaming function_calling structured_output vision], context: 2097152, output: 8192 },
|
|
48
|
-
{ id: "gemini-1.5-flash", family: "gemini", capabilities: %w[chat streaming function_calling structured_output vision], context: 1048576, output: 8192 },
|
|
49
|
-
{ id: "text-embedding-004", family: "embedding", capabilities: %w[embed], context: 2048 }
|
|
50
|
-
].freeze
|
|
51
|
-
|
|
52
|
-
MISTRAL_MODELS = [
|
|
53
|
-
{ id: "mistral-large-2501", family: "mistral", capabilities: %w[chat streaming function_calling structured_output], context: 128000, output: 4096 },
|
|
54
|
-
{ id: "mistral-small-2501", family: "mistral", capabilities: %w[chat streaming function_calling structured_output], context: 128000, output: 4096 },
|
|
55
|
-
{ id: "mistral-embed", family: "mistral", capabilities: %w[embed], context: 8192 }
|
|
56
|
-
].freeze
|
|
57
|
-
|
|
58
|
-
OLLAMA_MODELS = [
|
|
59
|
-
{ id: "llama3.2", family: "llama", capabilities: %w[chat streaming], context: 8192 },
|
|
60
|
-
{ id: "llama3.3", family: "llama", capabilities: %w[chat streaming], context: 8192 },
|
|
61
|
-
{ id: "mistral", family: "mistral", capabilities: %w[chat streaming], context: 8192 },
|
|
62
|
-
{ id: "gemma3", family: "gemma", capabilities: %w[chat streaming], context: 8192 },
|
|
63
|
-
{ id: "phi4", family: "phi", capabilities: %w[chat streaming], context: 8192 },
|
|
64
|
-
{ id: "qwen2.5", family: "qwen", capabilities: %w[chat streaming], context: 32768 },
|
|
65
|
-
{ id: "deepseek-r1", family: "deepseek", capabilities: %w[chat streaming reasoning], context: 8192 }
|
|
66
|
-
].freeze
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|