im trying

This commit is contained in:
Copper 2024-06-18 18:04:21 -07:00 committed by GitHub
parent 6c727abed5
commit 1504805f70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();