fix: broken cn chars

This commit is contained in:
Han Xiao 2025-03-27 23:20:00 +08:00
parent 320f66697b
commit 43f3ac115b

View File

@ -501,7 +501,7 @@ app.post('/v1/chat/completions', (async (req: Request, res: Response) => {
// Add content to queue for both thinking steps and final answer
if (step.action === 'visit') {
// emit every url in the visit action in url field
(step as VisitAction).URLTargets.forEach((url) => {
((step as VisitAction).URLTargets as string[]).forEach((url) => {
const chunk: ChatCompletionChunk = {
id: requestId,
object: 'chat.completion.chunk',