@opencode-ai/ai 0.0.0-dev-17720 → 0.0.0-dev-17724
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.
- package/dist/protocols/gemini.js +3 -1
- package/package.json +3 -3
package/dist/protocols/gemini.js
CHANGED
|
@@ -201,7 +201,9 @@ const lowerMessages = Effect.fn("Gemini.lowerMessages")(function* (request) {
|
|
|
201
201
|
if (message.role === "system") {
|
|
202
202
|
const part = yield* ProviderShared.wrappedSystemUpdate("Gemini", message);
|
|
203
203
|
const previous = contents.at(-1);
|
|
204
|
-
|
|
204
|
+
// Gemini rejects a continuation whose function-response turn carries extra
|
|
205
|
+
// parts, so an update after a tool result starts its own user turn.
|
|
206
|
+
if (previous?.role === "user" && !previous.parts.some((item) => "functionResponse" in item))
|
|
205
207
|
contents[contents.length - 1] = { role: "user", parts: [...previous.parts, { text: part.text }] };
|
|
206
208
|
else
|
|
207
209
|
contents.push({ role: "user", parts: [{ text: part.text }] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-17724",
|
|
4
4
|
"name": "@opencode-ai/ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@clack/prompts": "1.0.0-alpha.1",
|
|
32
32
|
"@effect/platform-node": "4.0.0-rc.110",
|
|
33
|
-
"@opencode-ai/http-recorder": "0.0.0-dev-
|
|
33
|
+
"@opencode-ai/http-recorder": "0.0.0-dev-17724",
|
|
34
34
|
"@tsconfig/bun": "1.0.9",
|
|
35
35
|
"@types/bun": "1.3.13",
|
|
36
36
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@smithy/eventstream-codec": "4.2.14",
|
|
41
41
|
"@smithy/util-utf8": "4.2.2",
|
|
42
|
-
"@opencode-ai/schema": "0.0.0-dev-
|
|
42
|
+
"@opencode-ai/schema": "0.0.0-dev-17724",
|
|
43
43
|
"aws4fetch": "1.0.20",
|
|
44
44
|
"effect": "4.0.0-rc.110",
|
|
45
45
|
"google-auth-library": "10.5.0"
|