From 48b908d36c0c221a7831645c8024d3e6628d4863 Mon Sep 17 00:00:00 2001 From: "jinhui.li" Date: Mon, 3 Mar 2025 15:42:11 +0800 Subject: [PATCH] fix some bugs --- index.mjs | 1 - router.mjs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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",