@quatrain/ai-gemini 1.1.1 → 1.1.2
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/README.md +24 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @quatrain/ai-gemini
|
|
2
|
+
|
|
3
|
+
AI adapter for Google Gemini. Integrates the Gemini API into the Quatrain AI ecosystem.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
This package is part of the Quatrain Core monorepo. It provides functionality related to ai adapter for google gemini. integrates the gemini api into the quatrain ai ecosystem.
|
|
8
|
+
|
|
9
|
+
## HOWTO / Usage Examples
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { Ai } from '@quatrain/ai'
|
|
13
|
+
import { GeminiAdapter } from '@quatrain/ai-gemini'
|
|
14
|
+
|
|
15
|
+
Ai.registerAdapter(new GeminiAdapter({ apiKey: 'YOUR_API_KEY' }))
|
|
16
|
+
|
|
17
|
+
const response = await Ai.generate('Hello Gemini')
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Conventions & Technical Details
|
|
21
|
+
|
|
22
|
+
- Follows the standard Quatrain architecture patterns.
|
|
23
|
+
- Ensure proper configuration before usage.
|
|
24
|
+
- See the root monorepo documentation for more details on building and testing this package.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quatrain/ai-gemini",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"description": "AI adapter for Google Gemini",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "Quatrain Développement SAS <developers@quatrain.com>",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@google/genai": "latest",
|
|
24
|
-
"@quatrain/ai": "^1.1.
|
|
25
|
-
"@quatrain/core": "^1.
|
|
24
|
+
"@quatrain/ai": "^1.1.2",
|
|
25
|
+
"@quatrain/core": "^1.2.5"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@tsconfig/recommended": "^1.0.1",
|