ECA sends null JSON items to Mistral models

クローズ
#685 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
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 の本文から書いたものです。

説明

bug

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:

  1. Run Emacs.
  2. Open let's say eca-emacs/Eask file and run `M-x eca' there.
  3. Select mistral-small model.
  4. Run prompt "what is the package version?".
  5. 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
平均マージ
2日 14時間
マージ済み PR(30日)
23

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

editor-code-assistant/eca のほかの issue

editor-code-assistant/eca の issue をすべて見る

似ている issue

Clojure の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。