Changelog

This package is already used in production at Tune AI, please do not wait for release 1.x.x for stability, or expect to reach 1.0.0. We do not follow the general rules of semantic versioning, and there can be breaking changes between minor versions.

All relevant steps to be taken will be mentioned here.

0.5.10

  • Remove redundant prints.

0.5.9

  • By default set the value parallel_tool_calls in OpenAI to False.

0.5.8

  • If you have numpy installed in your environment, then tuneapi.utils.randomness.reservoir_sampling will honour the seed value. If you do not have numpy installed, then the seed value will be ignored.

  • Fix Bug in Gemini API body for functions with no parameters.

0.5.7

  • Implement extra_headers via __init__ as well.

0.5.6

  • Remove protobuf as a dependency in because bunch of other packages break. The functions are still present

0.5.5

  • In all implmenetations of tuneapi.types.chats.ModelInterface add new input to the API endpoints called extra_headers which is a dictionary to update the outgoing headers.

0.5.4

  • Standardise tuneapi.types.chats.ModelInterface to have model_id, api_token added to the base class.

0.5.3

  • Fix bug in Tune proxy API where incorrect variable stop_sequence was sent instead of the correct stop causing incorrect behaviour.

  • bump dependency to protobuf>=5.27.3

  • remove __version__ from tuneapi package

  • remove CLI entrypoint in pyproject.toml

0.5.2

  • Add ability to upload any file using tuneapi.endpoints.FinetuningAPI.upload_dataset_file to support the existing way to uploading using threads.

0.5.1

  • Fix bug in the endpoints module where error was raised despite correct inputs

0.5.0 (breaking)

In this release we have moved all the Tune Studio specific API out of tuneapi.apis to tuneapi.endpoints to avoid cluttering the apis namespace.

- from tuneapi import apis as ta
+ from tuneapi import endpoints as te
...
- ta.ThreadsAPI(...)
+ te.ThreadsAPI(...)
  • Add support for finetuning APIs with tuneapi.endpoints.FinetuningAPI

  • Primary environment variables have been changed from TUNE_API_KEY to TUNEAPI_TOKEN and from TUNE_ORG_ID to TUNEORG_ID, if you were using these please update your environment variables

  • Removed CLI methods test_models and benchmark_models, if you want to use those, please copy the code from this commit

0.4.18

  • Fix bug where function response was tried to be deserialised to the JSON and then sent to the different APIs.

0.4.17

  • Fix error in tuneapi.utils.serdeser.to_s3 function where content type key was incorrect

0.4.16

  • Adding support for python 3.12

  • Adding tool as a valid role in tuneapi.types.chats.Message

0.4.15

  • When there is an error in the model API, we used to print the error message. Now we are returning the error message in the response.

0.4.14

  • Fix bug where a loose pydantic import was present

0.4.13

  • Bug fixes in JSON deserialisation

0.4.12

  • Fix bug in Threads API where incorrect structure was sent by client

  • Add images support for Anthropic API

  • Add Message.images field to store all images