ECA sends null JSON items to Mistral models
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- json
- 领域
- api
调研方向
Start from the reproduction in eca-emacs/Eask: run ECA in Emacs, select mistral-small, and send “what is the package version?”. Inspect the JSON input sent with the prompt and compare it with the attached examples; the issue is done when ECA sends valid input without null items and the prompt succeeds.
由索引模型根据 Issue 内容生成。
描述
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
Describe the bug
When I send prompts in an Emacs ECA session to a Mistral model, I get the error OpenAI response status: 400 body: {"object":"error","message":"input: Value error, Input items of type None are not supported.","type":"invalid_request_error","param":null,"code":"3051","raw_status_code":400}.
This is because ECA sends null items in its JSON input (see the attached files for examples; I replaced some ids there with ... to avoid posting possibly sensitive information). It happens at least with mistral-small (when sending the first prompt already) and mistral-large-4 (when sending a followup prompt in the same session) models.
eca-mistral-small.json
eca-mistral-large-4.json
To Reproduce
Steps to reproduce the behavior:
- Run Emacs.
- Open let's say eca-emacs/Eask file and run `M-x eca' there.
- Select mistral-small model.
- Run prompt "what is the package version?".
- You should get the error.
Expected behavior
ECA sends valid JSON inputs.
Doctor
Paste the relevant parts of /doctor command from chat if applicable:
ECA version: 0.169.0
Server cmd: /home/pdm/.emacs.d/eca/eca server
Workspaces: /home/pdm/git/github.com/editor-code-assistant/eca-emacs
Default model: mistral/mistral-large-4 (API key (...))
Logged providers:
mistral: API key (...)
Relevant env vars:
Credential files: None found
- 主要语言
- Clojure
- 星标
- 1k
- 派生
- 82
- 平均合并
- 1 天 21 小时
- 30 天内合并 PR
- 25
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
editor-code-assistant/eca 的其他 Issue
-
Models doesn't work when fetchModels: false is used可能已有人在做 @zikajk 于 12 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
editor-code-assistant/eca#661 · 已指派 1 人 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
editor-code-assistant/eca#684 · 4 条评论 ·
维护者通常 2 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 48/100
editor-code-assistant/eca#683 · 2 条评论 ·
维护者通常 2 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 74/100
editor-code-assistant/eca#672 ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
editor-code-assistant/eca#671 · 2 条评论 ·
维护者通常 2 天内回复
查看 editor-code-assistant/eca 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
calcit-lang/calcit#2538 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
-
comment above the first :require-macros libspec is hoisted onto the form可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug namespace v1 blocker
难度 2/5 1-3 小时 新手友好度 72/100
oakmac/standard-clojure-style-js#268 ·
维护者通常 1 天内回复
-
Bug: server save errors never reach the form (on-save-failed-expr unwraps the mutation result twice)未关闭bug
难度 2/5 1-3 小时 新手友好度 80/100
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复