@arcote.tech/arc-ai-gemini 0.4.7 → 0.5.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.
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcote.tech/arc-ai-gemini",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Gemini (Google) adapter for Arc AI framework",
|
|
7
7
|
"main": "./src/index.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type-check": "tsc --noEmit"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@arcote.tech/arc-ai": "^0.
|
|
13
|
+
"@arcote.tech/arc-ai": "^0.5.0",
|
|
14
14
|
"typescript": "^5.0.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -118,7 +118,7 @@ export function gemini(config: GeminiConfig): LLMProvider {
|
|
|
118
118
|
throw new Error(`Gemini API error ${response.status}: ${error}`);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
const data = await response.json()
|
|
121
|
+
const data = await response.json();
|
|
122
122
|
const candidate = data.candidates?.[0];
|
|
123
123
|
const parts = candidate?.content?.parts ?? [];
|
|
124
124
|
|