Skip to content

fix(model): fail-closed OpenAI choice message shape - #45

Open
Bartok9 wants to merge 1 commit into
Auromix:ros2-humblefrom
Bartok9:aerial/openai-response-shape-safe
Open

fix(model): fail-closed OpenAI choice message shape#45
Bartok9 wants to merge 1 commit into
Auromix:ros2-humblefrom
Bartok9:aerial/openai-response-shape-safe

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 25, 2026

Copy link
Copy Markdown

Empty OpenAI choices or a missing message used to crash the model node via KeyError/IndexError. Parse fail-closed and treat unknown shapes as non-function-call text path.

AI-assisted; human-reviewed.

Claim: bartok
Operator: bartok
Campaign: aerial-drone

Avoid KeyError/IndexError when choices is empty or message is missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant