Skip to content

使用glm-4模型时,运行至const followUpQuestions = await generateFeedback({query: initialQuery, });报错:NoObjectGeneratedError [AI_NoObjectGeneratedError]: No object generated: could not parse the response. #141

Description

@zhouchengzhi1994

Using model: glm-4
What would you like to research? 科比
Enter research breadth (recommended 2-10, default 4): 1
Enter research depth (recommended 1-5, default 2): 1
Do you want to generate a long report or a specific answer? (report/answer, default report): report
Creating research plan...
NoObjectGeneratedError [AI_NoObjectGeneratedError]: No object generated: could not parse the response.
at processResult (E:\TsProjects\deep-research-main\node_modules\ai\core\generate-object\generate-object.ts:751:17)
at fn (E:\TsProjects\deep-research-main\node_modules\ai\core\generate-object\generate-object.ts:786:18)
... 3 lines matching cause stack trace ...
at async run (E:\TsProjects\deep-research-main\src\run.ts:61:31) {
cause: JSONParseError [AI_JSONParseError]: JSON parsing failed: Text: To provide a focused and detailed response to your query about "科比," I need to clarify the context and the depth of the research you require. Here are three questions to help guide my research:

  1. Are you interested in Kobe Bryant's basketball career, his impact on the sport, or his legacy post-retirement?

  2. Would you like me to delve into specific aspects such as his playing style, his achievements, or his influence on basketball culture, both domestically and internationally?

  3. Are you seeking information on any particular event or period in Kobe Bryant's life, or is this a broad request encompassing his entire career and life after basketball?.
    Error message: Unexpected token 'T', "To provide"... is not valid JSON
    at safeParseJSON (E:\TsProjects\deep-research-main\node_modules\ai\node_modules@ai-sdk\provider-utils\src\parse-json.ts:110:11)
    at processResult (E:\TsProjects\deep-research-main\node_modules\ai\core\generate-object\generate-object.ts:748:29)
    at fn (E:\TsProjects\deep-research-main\node_modules\ai\core\generate-object\generate-object.ts:786:18)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async (E:\TsProjects\deep-research-main\node_modules\ai\core\telemetry\record-span.ts:18:22)
    at async generateFeedback (E:\TsProjects\deep-research-main\src\feedback.ts:14:24)
    at async run (E:\TsProjects\deep-research-main\src\run.ts:61:31) {
    cause: [SyntaxError: Unexpected token 'T', "To provide"... is not valid JSON],
    text: 'To provide a focused and detailed response to your query about "科比," I need to clarify the context and the depth of the research you require. Here are three questions to help guide my research:\n' +
    '\n' +
    "1. Are you interested in Kobe Bryant's basketball career, his impact on the sport, or his legacy post-retirement?\n" +
    ' \n' +
    '2. Would you like me to delve into specific aspects such as his playing style, his achievements, or his influence on basketball culture, both domestically and internationally?\n' +
    '\n' +
    "3. Are you seeking information on any particular event or period in Kobe Bryant's life, or is this a broad request encompassing his entire career and life after
    basketball?",
    [Symbol(vercel.ai.error)]: true,
    [Symbol(vercel.ai.error.AI_JSONParseError)]: true
    },
    text: 'To provide a focused and detailed response to your query about "科比," I need to clarify the context and the depth of the research you require. Here are three
    questions to help guide my research:\n' +
    '\n' +
    "1. Are you interested in Kobe Bryant's basketball career, his impact on the sport, or his legacy post-retirement?\n" +
    ' \n' +
    '2. Would you like me to delve into specific aspects such as his playing style, his achievements, or his influence on basketball culture, both domestically and internationally?\n' +
    '\n' +
    '\n' +
    "3. Are you seeking information on any particular event or period in Kobe Bryant's life, or is this a broad request encompassing his entire career and life after ba "3. Are you seeking information on any particular event or period in Kobe Bryant's life, or is this a broad request encompassing his entire career and life after basketball?",
    response: {
    id: '2025070716470182a0ab642209470d',
    timestamp: 2025-07-07T08:47:05.000Z,
    modelId: 'glm-4'
    },
    usage: { promptTokens: 256, completionTokens: 133, totalTokens: 389 },
    finishReason: 'stop',
    [Symbol(vercel.ai.error)]: true,
    [Symbol(vercel.ai.error.AI_NoObjectGeneratedError)]: true
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions