dottxt-ai / outlines

Structured Text Generation
https://dottxt-ai.github.io/outlines/
Apache License 2.0
8.26k stars 421 forks source link

Add tests for the integration with OpenAI API #431

Open rlouf opened 9 months ago

rlouf commented 9 months ago

We should add tests for the OpenAI API, for instance using the responses framework to mock the response from the OpenAI API.

We can also consider running the examples as integration tests in nightly CI.

avirlrma commented 8 months ago

I think we could just mock the calls to openai library, right? We shouldn't be needing responses here.