Skip to content

当用户提问包含图片与文字时出现错误 #58

@xinhai-ai

Description

@xinhai-ai

Outlet error: TypeError: e.match is not a function
对应的请求 为
{ "user": { "id": "", "email": "", "name": "", "role": "" }, "body": { "model": "", "messages": [ { "role": "system", "content": "You are a highly capable AI assistant" }, { "role": "user", "content": [ { "type": "text", "text": "what is it" }, { "type": "image_url", "image_url": { "url": "data:image/png;base64,iV" } } ] }, { "id": "381b8077-87e9-4474-94e3-79a723a05a49", "role": "assistant", "content": "The image is "。", "timestamp": 1740489057 } ], "chat_id": "c2840c4c-f2a1-403e-8b45-a2ab9615691f", "session_id": "PJ_wbSVTOD_PdU_bAAJd", "id": "381b8077-87e9-4474-94e3-79a723a05a49" } }
这里的content 并非为string ,而是list 位于这里

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