mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-23 14:42:07 +02:00
groq fixes
This commit is contained in:
parent
b979ef6da5
commit
1ebe75e59e
1 changed files with 2 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
||||||
const Groq = require('groq-sdk');
|
import Groq from 'groq-sdk'
|
||||||
import { getKey } from '../utils/keys.js';
|
import { getKey } from '../utils/keys.js';
|
||||||
|
|
||||||
export class Mixtral {
|
export class Mixtral {
|
||||||
constructor(model_name, url) {
|
constructor(model_name, url) {
|
||||||
this.model_name = model_name;
|
this.model_name = model_name;
|
||||||
this.url = url;
|
this.url = url;
|
||||||
this.groq = new Groq(getKey('GROQ_API_KEY'));
|
this.groq = new Groq({ apiKey: getKey('GROQ_API_KEY')});
|
||||||
}
|
}
|
||||||
|
|
||||||
async sendRequest(turns, systemMessage, stop_seq="***") {
|
async sendRequest(turns, systemMessage, stop_seq="***") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue