Internal server error for role orders in LLM inference
まだ誰も着手していません。
評価
調査の方向性
まず、引用されているロール順序および最後のメッセージのエラーを生成するバリデーションを追跡し、その後、継続メッセージまたはエージェント観測メッセージを含むリクエストを再現します。対応している非交互のロールシーケンスが HTTP 500 を返さなくなり、意図したバリデーション動作が引き続きカバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi,
I am getting 500s with description
chat messages must alternate roles between 'user' and 'assistant'. Message may have a leading 'system' role message
and
"Internal Server Error\",\"status\":500,\"detail\":\"Last message role should be 'user'
I think this order validation is unnecessary. Most of the models (e.g. mixtrals, llama3, gemma etc) are perfectly fine with any order of roles. This claim can be validated on groq's playground: https://console.groq.com/playground
This issue currently breaks some existing patterns, like continuations (without the user explicitly saying "continue") or in some cases running agents with observations etc.
- 主要言語
- Jupyter Notebook
- スター
- 4.2k
- フォーク
- 1.1k
- 平均マージ
- 10時間 15分
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NVIDIA/GenerativeAIExamples のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
NVIDIA/GenerativeAIExamples#361 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NVIDIA/GenerativeAIExamples#299 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
NVIDIA/GenerativeAIExamples#437 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 45/100
NVIDIA/GenerativeAIExamples#400 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
NVIDIA/GenerativeAIExamples#399 ·
NVIDIA/GenerativeAIExamples の issue をすべて見る
似ている issue
-
area/config comp/cli comp/plugins P3 Plugin Catalog sweeper:risk-compatibility tool/memory type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#119909 · コメント 1 件 ·
-
bug configuration documentation examples policies processor tests training
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
huggingface/lerobot#4727 ·
-
📱 AI 日报 · 2026-09-23 オープンai-content daily-post
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
run-llama/llama_index#23199 ·
-
p:2-high pydanty:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
pydantic/pydantic-ai#8642 · コメント 2 件 ·