Skip to content

Conversation

@knjiang
Copy link
Contributor

@knjiang knjiang commented Dec 30, 2025

This PR adds testing matrix + provider adapters for:

  • OpenAI (ChatCompletions)
  • Anthropic
  • Google
  • Bedrock (Converse)
  • OpenAI (Responses)

and callers use transform_request and transform_response to translate between providers.

The file below explains how to add a new provider based on the ProviderAdapter trait and also a closed testing loop so LLMs can just iterate:

https://github.com/braintrustdata/lingua/blob/a6019a6fc0a082a373d1f55c188df6483772b864/crates/lingua/docs/ADDING_PROVIDER_FORMAT.md

Current coverage status for the testing matrix is here ->:

https://github.com/braintrustdata/lingua/actions/runs/20666751649?pr=50

Copy link
Contributor Author

knjiang commented Dec 30, 2025

@knjiang knjiang force-pushed the 12-29-add_provideradapter_providerformat_transform_request_response_stream_chunk_patterns_to_lingua branch 5 times, most recently from f042687 to c8c1f9b Compare January 2, 2026 21:06
@knjiang knjiang force-pushed the 12-29-add_provideradapter_providerformat_transform_request_response_stream_chunk_patterns_to_lingua branch from c8c1f9b to a6019a6 Compare January 2, 2026 21:09
@knjiang knjiang marked this pull request as ready for review January 2, 2026 21:13
@knjiang knjiang requested a review from remh January 2, 2026 22:02
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