We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2372123 commit f651c86Copy full SHA for f651c86
lib/ruby_llm/providers/azure_openai/models.rb
@@ -7,11 +7,26 @@ module AzureOpenAI
7
module Models
8
extend OpenAI::Models
9
10
+ KNOWN_MODELS = [
11
+ 'gpt-4o'
12
+ ].freeze
13
+
14
module_function
15
16
def models_url
17
'models?api-version=2024-10-21'
18
end
19
20
+ def parse_list_models_response(response, slug, capabilities)
21
+ # select the known models only since this list from Azure OpenAI is
22
+ # very long
23
+ response.body['data'].select! do |m|
24
+ KNOWN_MODELS.include?(m['id'])
25
+ end
26
+ # Use the OpenAI processor for the list, keeping in mind that pricing etc
27
+ # won't be correct
28
+ super
29
30
31
32
0 commit comments