Skip to content

自定义大模型无响应问题 #461

Open

Description

@FengtaoTien

当我在idea中自定义一个大模型时,测试链接显示通过,但是在ai对话框里似乎没有影响。
1、自定义模型时,stream参数勾选效果与显示指定stream参数效果好像不一样,当我指定"stream": 0时,测试链接显示成功,但是此时跟ai对话是没有反应的

Image

2、自定义模型时,stream参数勾选上,不显示定义stream参数,测试链接显示400,似乎传递到后端的参数类型不相符。去掉勾选,显示指定,"stream": 1时,可以得到返回值,但是流式结果是解析不了的,报错如下
Test Connection:
Connectionfailed:cannotparse withresponseResolver:$.result.content,ori data: data:(data:"id":*chatcmpl-297481cb2051b1e050903f57fba436b9",data:"index":0,data:"result":"",data:"role":"",data:"toolcalls":null,data:"finishreason":false,data:
返回结果形如:
data:{
data: "id" : "chatcmpl-5a7eb967-3139-45e5-83de-473cb9e543bf",
data: "index" : 0,
data: "result" : "",
data: "role" : "",
data: "tool_calls" : null,
data: "finish_reason" : false,
data: "finish_detail" : null,
data: "usage" : null,
data: "audioUsage" : null,
data: "extraReturn" : null

问题:
1)自定义模型参数"stream"只支持0或1时,而不是true或false,此时智能显示定义在请求体中,但是下次在再打开时,显示定义参数就丢失了
2)对于自定义大模型,是不是不支持流式返回结果?
3)非流式结果,测试链接通过,为何ai对话无响应?

Activity

  1. phodal commented on Nov 18, 2025

    @phodal
    Owner

    3 你们返回的数据格式不对,可以看看 deepseek 之类是如何返回的,应该是

    data: {"id:"xxx", ...}
    event: xxxx
    
    data: {"id:"xxx", ...}
  2. FengtaoTien commented on Nov 18, 2025

    @FengtaoTien
    Author

    确认了一下,流式返回结果与其他大模型结构类似,如图。我把use streaming response 勾选上,并且显示定义"stream": 1,测试ok了。奇怪的是为什么ai chat对话依然没有响应呢?我可以从哪里进一步分析一下?

    Image Image Image
  3. phodal commented on Nov 18, 2025

    @phodal
    Owner

    按你的格式,response resolver 的设置应该是 $.result

  4. FengtaoTien commented on Nov 18, 2025

    @FengtaoTien
    Author

    按你的格式,response resolver 的设置应该是 $.result

    是的,我上面截图里已经改为$.result了,看idea日志,似乎还是结果不匹配,我从哪里可以看到更多日志?2025-11-18 16:26:19,747 [25470157] INFO - #c.i.m.l.c.q.QuotaManager2 - New quota refill state is: Error(exception=com.intellij.ml.llm.core.quota.ResultDoesNotMatchConditionException: Returned result does not match the condition, previous=null)

  5. phodal commented on Nov 18, 2025

    @phodal
    Owner

    你这个 QuotaManager2 不是 AutoDev 的日志

  6. hsl313 commented on Apr 13, 2026

    @hsl313

    LLM call failed: Model not supported by Ollama

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions