mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-07-09 17:18:24 +00:00
fix some bugs
This commit is contained in:
parent
ac9acd73c3
commit
48b908d36c
2 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { OpenAI } from "openai";
|
||||
import { getOpenAICommonOptions } from "./utils.mjs";
|
||||
|
||||
const useToolRouter = {
|
||||
name: "use-tool",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue