Skip to content

Commit a193e17

Browse files
committed
Cleanup and doc tweaks
1 parent 2d7de5a commit a193e17

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

lib/ruby_llm/configuration.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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,

lib/ruby_llm/providers/azure_openai.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
module 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

lib/ruby_llm/providers/azure_openai/chat.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module 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

lib/ruby_llm/providers/azure_openai/streaming.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
module 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

0 commit comments

Comments
 (0)