Skip to content

[BUG] 异常提示信息有误 #459

@aa4377-pixel

Description

@aa4377-pixel

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

如配置的模型不支持,提示的错误信息提示有误导性,现状是web在点击测试连接时提示:“接口未找到 (404),请检查 Base URL 或者路径配置地址。” debug看到实际响应是模型不支持。

模型连接测试响应:404 - {"error":{"message":"Unsupported model multimodal-embedding-v1 for OpenAI compatibility mode.","type":"invalid_request_error","param":null,"code":"model_not_supported"},"request_id":"10fd6824-6e7d-9df7-85f5-bf7b4310a49d"}

Expected Behavior

提示 model_not_supported

Steps To Reproduce

No response

Environment

DataAgent-1.0.0-rc4

Debug logs

Image

Anything else?

另外DataAgent-1.0.0-rc4,本地启动正常,但无法对话,报错No primary or single unique constructor found for interface org.springframework.http.server.reactive.ServerHttpResponse

SessionEventController,GraphController需要去掉以下代码才可正常使用
ServerHttpResponse response
response.getHeaders().add("Cache-Control", "no-cache");
response.getHeaders().add("Connection", "keep-alive");
response.getHeaders().add("Access-Control-Allow-Origin", "*");

Metadata

Metadata

Assignees

No one assigned

    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