Skip to content

Latest commit

 

History

History
131 lines (78 loc) · 4.44 KB

CHANGELOG.md

File metadata and controls

131 lines (78 loc) · 4.44 KB

Changelog

See releases for more.

0.6.0

Adds vector store responses

Closed:

0.5.0

Adds routes for models and retrieving file content.

Closed:

0.4.1

Adds setter for OpenAIMock state store

0.4.0

Important

Breaking change

Note

✨ Streaming support is here

Tons of changes:

  • New EventStream and AsyncEventStream objects to create mock event streams
  • OpenAIMock class now exposes state store through state property
  • Updated and more organized API
  • Replacement of calls property on routes in favor of route property
  • New examples:
    • Create run with streaming
    • Create run with streaming (async)
    • Exporting router as transport to use as http_client in OpenAI client constructor
  • Plus some small bug fixes and QoL enhancements

0.3.4

Overriding base URL was not working properly for Azure endpoints. Thanks @mapohjola for pointing this out. This moves the version prefix (i.e. /v1) from the OpenAI routes to the default base URL. Also added an example using Azure endpoints.

Closed:

0.3.3

Fixes incorrect partial type definition for run step tool calls.

0.3.2

Adds router property on OpenAIMock class to expose instance of respx.MockRouter to easily allow user to add additional routes to mock like non-OpenAI API calls, or enable a call to a route to pass through to the external service.

Usage example can be found here.

Closed:

0.3.1

Fixes:

Thanks @pietroMonta42 for finding these issues.

0.3.0

Important

Breaking change

Introducing an all-new API that is both simpler to use and much more flexible. See docs for more.

In addition to a new API, this release closed these issues:

Additional notes:

  • Removes token estimation. This is now the responsibility of the user to provided mock token count
  • Adds more example files
  • Still not completely happy with current state of mocking run steps. Will likely change in the near future.

0.2.1

Warning

Deprecated

Fixes issue where messages included in run create params (using additional_messages) was ignored.

0.2.0

Caution

Yanked

Migrates assistant endpoints to Assistants V2

0.1.1

Caution

Yanked

Fixes some issues with chat completions and other stateless mocks

0.1.0

Caution

Yanked

Initial release with minimally useful support for what I needed.