Skip to content

Commit cdf0d61

Browse files
committed
[8.0.0] add multimodal support for OpenAI
1 parent a4b2f53 commit cdf0d61

File tree

10 files changed

+968
-175
lines changed

10 files changed

+968
-175
lines changed

docs/changelog.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ minor versions.
77

88
All relevant steps to be taken will be mentioned here.
99

10+
11+
0.8.0
12+
-----
13+
14+
- Adding multimodal support for OpenAI and Gemini endpoints.
15+
- Added new types for the new endpoints, etc.
16+
- New utils function ``file_size`` to get the size of the file in bytes.
17+
18+
1019
0.7.4
1120
-----
1221

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
project = "tuneapi"
1414
copyright = "2024-2025, Frello Technologies"
1515
author = "Frello Technologies"
16-
release = "0.7.4"
16+
release = "8.0.0"
1717

1818
# -- General configuration ---------------------------------------------------
1919
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

docs/index.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,18 @@ into a single MIT-licensed package. It contains 3 major submodules:
1414
- ``tuneapi.endpoints``: Contains all the API endpoints for the Tune Studio
1515

1616

17-
Prompt Injection
18-
----------------
17+
Prompt for Chat
18+
---------------
1919

2020
Since ``tuneapi`` is a new and unpopular package most LLMs will not be able to generate code based on it. However you can
2121
paste the following code snippet in the prompt to generate the code for LLM API calls.
2222

23-
Prompt
24-
~~~~~~
25-
26-
You are going to use ``tuneapi`` package to use the LLM endpoint. Here's a brief on how to use it:
27-
28-
.. code-block:: python
23+
.. code-block:: markdown
24+
25+
You are going to use `tuneapi` package to use the LLM endpoint. Use structured generation for logical parts of
26+
the process. Here's an example on how to use `tuneapi`:
2927
28+
```python
3029
from tuneapi import tt, ta
3130
3231
# define a thread which is a collection of messages with system, user and assistant messages
@@ -37,7 +36,7 @@ You are going to use ``tuneapi`` package to use the LLM endpoint. Here's a brief
3736
)
3837
3938
# define a model
40-
model = ta.Gemini() # Openai, Anthropic
39+
model = ta.Gemini() # other LLMs: Openai, Anthropic, Groq, TuneModel, Mistral
4140
4241
# get the response
4342
resp: str = model.chat(thread)
@@ -64,6 +63,7 @@ You are going to use ``tuneapi`` package to use the LLM endpoint. Here's a brief
6463
6564
# get structured output
6665
resp: MathTest = model.chat(thread)
66+
```
6767
6868
6969
.. toctree::

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tuneapi"
3-
version = "0.7.4"
3+
version = "8.0.0"
44
description = "Tune AI APIs."
55
authors = ["Frello Technology Private Limited <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)