mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-21 21:52:07 +02:00
im trying
This commit is contained in:
parent
6c727abed5
commit
1504805f70
1 changed files with 9 additions and 3 deletions
|
@ -1,8 +1,16 @@
|
|||
const Groq = require('groq-sdk');
|
||||
import { getKey } from '../utils/keys.js';
|
||||
|
||||
export class Mixtral {
|
||||
constructor(model_name, url) {
|
||||
this.model_name = model_name;
|
||||
this.url = url;
|
||||
this.groq = new Groq(getKey('GROQ_API_KEY'));
|
||||
}
|
||||
}
|
||||
|
||||
const groq = new Groq();
|
||||
async function main() {
|
||||
async function definitelynotmain() {
|
||||
const chatCompletion = await groq.chat.completions.create({
|
||||
"messages": [
|
||||
{
|
||||
|
@ -26,5 +34,3 @@ async function main() {
|
|||
process.stdout.write(chunk.choices[0]?.delta?.content || '');
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
|
|
Loading…
Add table
Reference in a new issue