diff --git a/deno.json b/deno.json index 83f2504..aebf616 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "imports": { - "@slack/bolt": "npm:@slack/bolt@^3.17.1", - "groq-sdk": "npm:groq-sdk@^0.3.2" + "@slack/bolt": "npm:@slack/bolt@^3.19.0", + "groq-sdk": "npm:groq-sdk@^0.5.0" } } diff --git a/main.ts b/main.ts index 9a60a66..98009a6 100644 --- a/main.ts +++ b/main.ts @@ -33,7 +33,7 @@ ${system}`; import bolt from "npm:@slack/bolt"; import { Groq } from "npm:groq-sdk"; -type Messages = Array; +type Messages = Array; const groq = new Groq({ apiKey: GROQ_API_KEY, @@ -41,7 +41,7 @@ const groq = new Groq({ }); const kv = await Deno.openKv(); -async function chat(messages: Messages): Promise { +async function chat(messages: Messages): Promise { const res = await groq.chat.completions.create({ model, messages: [{ role: "system", content: system }, ...messages],