Skip to content

fix(prompting): Structured output class invalid chars#74

Merged
dolaameng merged 2 commits intocifrom
dolaameng/fix_structured_output
Mar 16, 2026
Merged

fix(prompting): Structured output class invalid chars#74
dolaameng merged 2 commits intocifrom
dolaameng/fix_structured_output

Conversation

@dolaameng
Copy link
Copy Markdown
Collaborator

@dolaameng dolaameng commented Mar 16, 2026

Fix the error when parsing primary types in LLM structured output:

"Expected the \'name\' field of a(n) \'json_schema\' \'response_format\' to be at most 64 characters containing a-z, A-Z, 0-9, dashes, or underscores; found: \'TypedResponse[int]\'."

class TypedResponse(RenderablePydanticModel, Generic[T]):
value: T

model_config = pydantic.ConfigDict(
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@s-alexey I shipped this fix first out of #12

@dolaameng dolaameng merged commit 53b9aa1 into ci Mar 16, 2026
4 checks passed
@dolaameng dolaameng deleted the dolaameng/fix_structured_output branch March 16, 2026 17:38
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.

2 participants