diff --git a/index.mjs b/index.mjs index 064ceec..67bfa57 100644 --- a/index.mjs +++ b/index.mjs @@ -130,7 +130,6 @@ app.post("/v1/messages", async (req, res) => { let hasStartedTextBlock = false; for await (const chunk of completion) { - console.log(chunk); const delta = chunk.choices[0].delta; if (delta.tool_calls && delta.tool_calls.length > 0) { const toolCall = delta.tool_calls[0]; diff --git a/router.mjs b/router.mjs index 55fd523..27e6c05 100644 --- a/router.mjs +++ b/router.mjs @@ -1,4 +1,5 @@ import { OpenAI } from "openai"; +import { getOpenAICommonOptions } from "./utils.mjs"; const useToolRouter = { name: "use-tool",