Skip to content

Commit 969b605

Browse files
committed
Fixed recent regressions regarding content
1 parent 1e86868 commit 969b605

File tree

142 files changed

+7142
-7049
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+7142
-7049
lines changed

lib/ruby_llm/providers/ollama/media.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Media
1010
module_function
1111

1212
def format_content(content)
13-
return [format_text(content)] unless content.is_a?(Content)
13+
return content unless content.is_a?(Content)
1414

1515
parts = []
1616
parts << format_text(content.text) if content.text

lib/ruby_llm/providers/openai/media.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Media
88
module_function
99

1010
def format_content(content)
11-
return [format_text(content)] unless content.is_a?(Content)
11+
return content unless content.is_a?(Content)
1212

1313
parts = []
1414
parts << format_text(content.text) if content.text

spec/fixtures/vcr_cassettes/activerecord_actsas_chainable_methods_persists_messages_after_chaining.yml

Lines changed: 25 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/vcr_cassettes/activerecord_actsas_persists_chat_history.yml

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/vcr_cassettes/activerecord_actsas_persists_tool_calls.yml

Lines changed: 17 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)