Skip to content

Conversation

@knjiang
Copy link
Contributor

@knjiang knjiang commented Jan 14, 2026

Improved chat completions adapter with Typed Streaming Models

This change replaces ad-hoc JSON parsing/building in chat completions with typed serde models. It improves correctness and IDE support, while keeping streaming payloads lossless and forward-compatible via #[serde(flatten)].

Copy link
Contributor Author

knjiang commented Jan 14, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@knjiang knjiang changed the title make chat completions typesafe Improve chat completions type safety Jan 14, 2026
@knjiang knjiang force-pushed the make_chat_completions_more_typesafe branch from e65ea15 to fa73f07 Compare January 14, 2026 19:27
@knjiang knjiang marked this pull request as ready for review January 14, 2026 20:21
@knjiang knjiang changed the title Improve chat completions type safety improve chat completions type safety Jan 14, 2026
@knjiang knjiang changed the title improve chat completions type safety improve chat completions adapter type safety Jan 14, 2026
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