Skip to content

Latest commit

 

History

History
217 lines (121 loc) · 6.78 KB

CHANGELOG.md

File metadata and controls

217 lines (121 loc) · 6.78 KB

Changelog

See releases for more.

v0.11.1

Bumps support range to include OpenAI Python SDK v1.51.

v0.11.0

OpenAI Python SDK minimum version is now v1.50.

0.10.3

Bumps support range to include OpenAI Python SDK v1.47.

0.10.2

Bumps support range to include OpenAI Python SDK v1.45 and includes o1 family of models in fetch models response.

Issues:

0.10.1

Bumps support range to include OpenAI Python SDK v1.43.

0.10.0

Adds support for moderations endpoint.

Issues:

Pull requests:

0.9.1

Bumps support range to include OpenAI Python SDK v1.42. Also adds env for testing Pydantic V1 and V2 in tox.

0.9.0

Adds support for structured outputs and the beta.chat.completions route.

Misc:

0.8.5

Bumps support range to include OpenAI Python SDK v1.40.

0.8.4

Bumps support range to include OpenAI Python SDK v1.38. Also removes dependency on faker.

0.8.3

Bumps support range to include OpenAI Python SDK v1.37.

0.8.2

Bumps support range to include OpenAI Python SDK v1.36.

0.8.1

Bumps support range to include OpenAI Python SDK v1.35.

0.8.0

Breaking change that removes the event method on the event stream classes and forces the user to explicitly define and construct the generated events.

This will help cut down on feature drift overtime since this is relying on OpenAI's types instead of relying on custom code that tried to make this easier for the user.

Closed:

0.7.0

Pulls in breaking changes fromr from OpenAI Python SDK v1.32+ and pins version support to >=1.32,<1.35

0.6.1

Pins OpenAI SDK version to >=1.25,<1.32

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.