deepflowio / stella-agent-ce

GNU Affero General Public License v3.0
4 stars 2 forks source link

配置了Azure参数后页面有错误提示 #9

Closed doufangyu closed 2 months ago

doufangyu commented 4 months ago
api_timeout: 500
daemon: true
instance_path: /root/df-llm-agent
log_file: /var/log/df-llm-agent.log
log_level: info
sql_show: false
mysql:
  database: deepflow_llm
  host: deepflow-mysql
  port: 30130
  user_password: deepflow
ai:
    enable: True
    platforms:
        -
            enable: True
            platform: "azure"
            model: "gpt"
            api_type: "azure"
            api_key: "xxxx"
            api_base: "http://xxx.xxx.xxx.xxxx"
            api_version: "2023-05-15"
            engine_name: 
                - "gpt-4"
image image

image

image
MicahDevOps commented 4 months ago

"Ask GPT" -> 提示 ‘GET Engines failed: e.map is not a function’ 在Engine列表那里没有engine

刚配置完LLM参数后是可以显示的,但是过一会就报错了

doufangyu commented 4 months ago

{ "OPT_STATUS": "SUCCESS", "DATA": { "azure": { "enable": "1", "model": "gpt", "engine_name": "gpt-4" }, "aliyun": { "enable": "0", "model": "dashscope", "engine_name": [ "qwen-turbo", "qwen-plus" ] }, "baidu": { "enable": "0", "model": "qianfan", "engine_name": [ "ERNIE-Bot", "ERNIE-Bot-turbo" ] }, "zhipu": { "enable": "0", "model": "zhipuai", "engine_name": [ "chatglm_turbo" ] } }, "DESCRIPTION": "SUCCESS" }

llm_agent_config接口返回如上 可以看到azure下enable:1, 当前版本为

image

确实刚配置完LLM参数后是可以显示的,但是过一会就报错了

twou12031 commented 4 months ago

感谢您的反馈, 会尽快尝试复现并修复 有任何进展, 会在这里同步

twou12031 commented 4 months ago

问题的原因: 返回结果中 DATA.azure.engine_name 的值是一个 string, 而非 string[] 修复: 在 deepflow-gui-grafana 插件中, 增加了插件对 engine_name 返回值是 string 的支持

请更新下面的包: registry.cn-beijing.aliyuncs.com/deepflow-ce/deepflowio-init-grafana:latest-297

doufangyu commented 4 months ago

您好, registry.cn-beijing.aliyuncs.com/deepflow-ce/deepflowio-init-grafana:latest-297已更新

现在有3问题 1、Engine列表间歇性为空, 2、GPT-4和GPT-4o有时会只显示一个(不止页面,接口返回也是) 3、点击Start Request后出了结果后二次点击接口返回INVALID PARAMETERS

doufangyu commented 4 months ago

image

image

image

doufangyu commented 4 months ago

image

beizhanyong commented 4 months ago

问题的原因: 从yaml中获取配置被污染 修复: 获取yaml中的配置项并做临时修改时使用深度拷贝 请更新下面的包: registry.cn-beijing.aliyuncs.com/deepflow-ce/deepflowio-stella-agent-ce:latest