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 +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +1 -1
- data/README_ja.md +1 -1
- data/lib/girb/ai_client.rb +6 -5
- data/lib/girb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5cae538e895d9dd246c201ed472db76065a49f120dfc8c547966110cfa5d804b
|
|
4
|
+
data.tar.gz: c919449a3e80f389a252e1893e0d7a3a6cc517c70c75dcbc66e79dc573a29f0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/girb/ai_client.rb
CHANGED
|
@@ -236,13 +236,14 @@ module Girb
|
|
|
236
236
|
accumulated_text << response.text
|
|
237
237
|
end
|
|
238
238
|
|
|
239
|
-
|
|
240
|
-
|
|
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