Skip to content

Commit c5c3a34

Browse files
fix: set ManagerSelectionResponse extra=forbid for Chat API structured outputs
OpenAI Chat Completions API requires additionalProperties: false in response_format schemas. The Responses API was more lenient, but environments using the Chat client (AzureOpenAIChatClientWithRetry) enforce this strictly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 325bf39 commit c5c3a34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/processor/src/libs/agent_framework/groupchat_orchestrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ManagerSelectionResponse(BaseModel):
7070
)
7171
final_message: str | None = None
7272

73-
model_config = {"extra": "allow", "populate_by_name": True}
73+
model_config = {"extra": "forbid", "populate_by_name": True}
7474

7575

7676
@dataclass

0 commit comments

Comments
 (0)