Skip to content

Commit

Permalink
feat: bump groq and updating models (#229)
Browse files Browse the repository at this point in the history
* feat: bump groq and updating models

* fix: revert package.json

* fix: update example

* feat: new models
  • Loading branch information
xavidop authored Feb 14, 2025
1 parent 2660fd5 commit 312b4e9
Show file tree
Hide file tree
Showing 9 changed files with 288 additions and 111 deletions.
4 changes: 2 additions & 2 deletions docs/docs/plugins/groq.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ Install the plugin in your project with your favorite package manager:
```typescript
import dotenv from 'dotenv';
import { genkit } from 'genkit';
import { groq, gemma7b } from 'genkitx-groq';
import { groq, gemma2x9b } from 'genkitx-groq';

dotenv.config();

const ai = genkit({
plugins: [groq({ apiKey: process.env.GROQ_API_KEY })],
// optional: default model for generate calls
model: gemma7b,
model: gemma2x9b,
});
```

Expand Down
4 changes: 2 additions & 2 deletions examples/groq/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

import dotenv from 'dotenv';
import { genkit, z } from 'genkit';
import { groq, gemma7b } from 'genkitx-groq';
import { groq, gemma2x9b } from 'genkitx-groq';

dotenv.config();

const ai = genkit({
plugins: [groq({ apiKey: process.env.GROQ_API_KEY })],
model: gemma7b,
model: gemma2x9b,
});

// genkit flow:run jokeFlow \"chicken\"
Expand Down
8 changes: 2 additions & 6 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.15.0",
"packages": [
"plugins/*",
"docs",
"examples/*"
]
}
"packages": ["plugins/*", "docs", "examples/*"]
}
62 changes: 5 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions plugins/groq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ Install the plugin in your project with your favorite package manager:
```typescript
import dotenv from 'dotenv';
import { genkit } from 'genkit';
import { groq, gemma7b } from 'genkitx-groq';
import { groq, gemma2x9b } from 'genkitx-groq';

dotenv.config();

const ai = genkit({
plugins: [groq({ apiKey: process.env.GROQ_API_KEY })],
// optional: default model for generate calls
model: gemma7b,
model: gemma2x9b,
});
```

Expand Down
2 changes: 1 addition & 1 deletion plugins/groq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"author": "TheFireCo",
"license": "Apache-2.0",
"dependencies": {
"groq-sdk": "^0.3.3"
"groq-sdk": "^0.15.0"
},
"peerDependencies": {
"genkit": "^0.9.0 || ^1.0.0"
Expand Down
Loading

0 comments on commit 312b4e9

Please sign in to comment.