We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9573703 commit 6b0945cCopy full SHA for 6b0945c
src/guidellm/backend/openai.py
@@ -688,7 +688,7 @@ def _extract_completions_delta_content(
688
return data["choices"][0]["text"]
689
690
if type_ == "chat_completions":
691
- return data["choices"][0]["delta"]["content"]
+ return data.get("choices", [{}])[0].get("delta", {}).get("content")
692
693
raise ValueError(f"Unsupported type: {type_}")
694
0 commit comments