File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class Configuration
2424 :bedrock_session_token ,
2525 :openrouter_api_key ,
2626 :ollama_api_base ,
27+ # Azure OpenAI Provider configuration
2728 :azure_openai_api_base ,
2829 :azure_openai_api_version ,
2930 :azure_openai_api_key ,
Original file line number Diff line number Diff line change 22
33module RubyLLM
44 module Providers
5- # OpenAI API integration. Handles chat completion, function calling,
6- # and OpenAI's unique streaming format. Supports GPT-4, GPT-3.5,
7- # and other OpenAI models.
5+ # Azure OpenAI API integration. Derived from OpenAI integration to support
6+ # OpenAI capabilities via Microsoft Azure endpoints.
87 module AzureOpenAI
98 extend OpenAI
109 extend AzureOpenAI ::Chat
10+ extend AzureOpenAI ::Streaming
1111
1212 module_function
1313
Original file line number Diff line number Diff line change 33module RubyLLM
44 module Providers
55 module AzureOpenAI
6- # Chat methods of the Ollama API integration
6+ # Chat methods of the Azure OpenAI API integration
77 module Chat
88 extend OpenAI ::Chat
99
Original file line number Diff line number Diff line change 33module RubyLLM
44 module Providers
55 module AzureOpenAI
6- # Streaming methods of the OpenAI API integration
6+ # Streaming methods of the Azure OpenAI API integration
77 module Streaming
88 extend OpenAI ::Streaming
99
1010 module_function
1111
12- def stream_response ( connection , payload , &block )
12+ def stream_response ( connection , payload , &)
1313 # Hold config in instance variable for use in completion_url and stream_url
1414 @config = connection . config
1515 super
You can’t perform that action at this time.
0 commit comments