Skip to content

feat: conversation types#431

Merged
janimo merged 2 commits intomasterfrom
grw/feat/chat
Mar 11, 2026
Merged

feat: conversation types#431
janimo merged 2 commits intomasterfrom
grw/feat/chat

Conversation

@georgewhewell
Copy link
Contributor

@georgewhewell georgewhewell commented Mar 6, 2026

sorry for the huge PR-

  • adds openai and anthropic conversation types
  • adds helpers for prompt preparation
  • adds example that serves via http

@georgewhewell georgewhewell force-pushed the grw/feat/chat branch 6 times, most recently from 9059cc7 to 5f31a65 Compare March 9, 2026 13:11
Add typed OpenAI, Anthropic, and plain completion types with only the fields we actually support, plus shared prompt-preparation and detokenization helpers. Replace the old serve trait glue with a concrete ModelEngine generation API so local inference, examples, and downstream consumers use the same typed surface.
Demonstrate the new typed request and response surfaces with a tiny_http server that serves OpenAI-, Anthropic-, and plain-compatible endpoints. Keep the example separate from the runtime refactor so the library cutover stays focused and the serving layer is easy to review on its own.
@georgewhewell georgewhewell marked this pull request as ready for review March 10, 2026 09:58
@janimo janimo merged commit 19c9eb5 into master Mar 11, 2026
6 checks passed
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