girb 0.3.3 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4766c775d7ef847340ae16e45b549bbb3d25679cba9a1ab056d83f9f9cde9ae
4
- data.tar.gz: '087f48944b9853977230ab10b98d98c9ad604c2d8a8333ab31d3531ef1ceb6b3'
3
+ metadata.gz: 5cae538e895d9dd246c201ed472db76065a49f120dfc8c547966110cfa5d804b
4
+ data.tar.gz: c919449a3e80f389a252e1893e0d7a3a6cc517c70c75dcbc66e79dc573a29f0e
5
5
  SHA512:
6
- metadata.gz: 16c1b0cda14ebce2880fcedcbeb289f81bcb885216e57d3eecfcefa36f198ddfb9fff7024960b14752809ad18e5f28a3440835a9562277be3bc8df8fe8d838b7
7
- data.tar.gz: 94b0c7f35ce6cafbe82871b138f7544990ea04e9af51e4aa16b49c07f52ccb06b30fd49d6d395ad767aba1d6cdabdb74d434dc954fcd2fc5ef22505eafa86685
6
+ metadata.gz: dc8e3c1aba30b34c016343f763e34c8541f2725bef726ff95ce7abd8f1776ef910be6edc9604bde5c92f55d0507b47d1353c60962a972d1d71f0d413cedf264f
7
+ data.tar.gz: 23b477f7f0d77f34966a95ee761c8acb7bcaa56330d76b7385968f50b468ee41d79a9c4f2312290e077a84e4ddfaade5912b88fea5c369d347abb413681aa5a5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.0] - 2026-02-12
4
+
5
+ ### Added
6
+
7
+ - Add web search support note for girb-gemini provider in README
8
+
9
+ ### Fixed
10
+
11
+ - Always record assistant message in conversation history even when response text is empty
12
+ - Maintains user/assistant message alternation required by some providers (e.g. Gemini with web search)
13
+
3
14
  ## [0.3.3] - 2026-02-08
4
15
 
5
16
  ### Fixed
data/README.md CHANGED
@@ -54,7 +54,7 @@ gem install girb girb-ruby_llm
54
54
 
55
55
  Available provider gems:
56
56
  - [girb-ruby_llm](https://github.com/rira100000000/girb-ruby_llm) - OpenAI, Anthropic, Gemini, Ollama, etc. (Recommended)
57
- - [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Gemini only
57
+ - [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Gemini only (supports web search)
58
58
 
59
59
  ### API Keys
60
60
 
data/README_ja.md CHANGED
@@ -52,7 +52,7 @@ gem install girb girb-ruby_llm
52
52
 
53
53
  利用可能なプロバイダーgem:
54
54
  - [girb-ruby_llm](https://github.com/rira100000000/girb-ruby_llm) - OpenAI、Anthropic、Gemini、Ollama等(推奨)
55
- - [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Geminiのみ
55
+ - [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Geminiのみ(web検索対応)
56
56
 
57
57
  ### APIキー
58
58
 
@@ -236,13 +236,14 @@ module Girb
236
236
  accumulated_text << response.text
237
237
  end
238
238
 
239
- if accumulated_text.any?
240
- full_text = accumulated_text.join("\n")
239
+ full_text = accumulated_text.any? ? accumulated_text.join("\n") : ""
240
+ # 空でも必ずアシスタントメッセージを記録(user/assistantの交互を維持)
241
+ ConversationHistory.add_assistant_message(full_text)
242
+ if full_text.empty?
243
+ puts "[girb] Warning: Empty or unexpected response" if Girb.configuration.debug
244
+ else
241
245
  puts full_text
242
- ConversationHistory.add_assistant_message(full_text)
243
246
  record_ai_response(full_text)
244
- elsif Girb.configuration.debug
245
- puts "[girb] Warning: Empty or unexpected response"
246
247
  end
247
248
  break
248
249
  end
data/lib/girb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Girb
4
- VERSION = "0.3.3"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: girb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rira100000000