Skip to content

Commit 47706d3

Browse files
authored
Merge pull request #420 from Portkey-AI/patch/version
version update to 2.2.0
2 parents bc16f89 + aa58a67 commit 47706d3

3 files changed

Lines changed: 93 additions & 1 deletion

File tree

portkey_ai/api_resources/apis/vector_stores.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import json
22
from typing import Any, Dict, Iterable, List, Optional, Union
33
import typing
4+
from portkey_ai._vendor.openai.types.vector_stores import file_batch_create_params
45
from portkey_ai.api_resources.apis.api_resource import APIResource, AsyncAPIResource
56
from portkey_ai.api_resources.client import AsyncPortkey, Portkey
67
from portkey_ai.api_resources.types.shared_types import Metadata
@@ -311,13 +312,15 @@ def create(
311312
vector_store_id: str,
312313
*,
313314
file_ids: Union[List[str], Omit] = omit,
315+
files: Union[Iterable[file_batch_create_params.File], Omit] = omit,
314316
chunking_strategy: Union[Any, Omit] = omit,
315317
**kwargs,
316318
) -> VectorStoreFileBatch:
317319
response = (
318320
self.openai_client.with_raw_response.vector_stores.file_batches.create(
319321
vector_store_id=vector_store_id,
320322
file_ids=file_ids,
323+
files=files,
321324
chunking_strategy=chunking_strategy,
322325
**kwargs,
323326
)
@@ -741,12 +744,14 @@ async def create(
741744
vector_store_id: str,
742745
*,
743746
file_ids: Union[List[str], Omit] = omit,
747+
files: Union[Iterable[file_batch_create_params.File], Omit] = omit,
744748
chunking_strategy: Union[Any, Omit] = omit,
745749
**kwargs,
746750
) -> VectorStoreFileBatch:
747751
response = await self.openai_client.with_raw_response.vector_stores.file_batches.create( # noqa: E501
748752
vector_store_id=vector_store_id,
749753
file_ids=file_ids,
754+
files=files,
750755
chunking_strategy=chunking_strategy,
751756
**kwargs,
752757
)

portkey_ai/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "2.1.0"
1+
VERSION = "2.2.0"

tests/models.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,92 @@
2323
"tts-1",
2424
"whisper-1"
2525
]
26+
},
27+
"anyscale": {
28+
"env_variable": "ANYSCALE_API_KEY",
29+
"chat": [
30+
"meta-llama/Llama-2-7b-chat-hf",
31+
"meta-llama/Llama-2-13b-chat-hf",
32+
"meta-llama/Llama-2-70b-chat-hf",
33+
"mistralai/Mistral-7B-Instruct-v0.1",
34+
"mistralai/Mixtral-8x7B-Instruct-v0.1"
35+
],
36+
"text": [
37+
"meta-llama/Llama-2-7b-chat-hf",
38+
"meta-llama/Llama-2-13b-chat-hf",
39+
"meta-llama/Llama-2-70b-chat-hf",
40+
"mistralai/Mistral-7B-Instruct-v0.1",
41+
"mistralai/Mixtral-8x7B-Instruct-v0.1"
42+
],
43+
"image":[],
44+
"audio":[]
45+
},
46+
"anthropic": {
47+
"env_variable": "ANTHROPIC_API_KEY",
48+
"chat": [
49+
"claude-3-opus-20240229",
50+
"claude-3-sonnet-20240229",
51+
"claude-3-haiku-20240307",
52+
"claude-2.1",
53+
"claude-2.0",
54+
"claude-instant-1.2"
55+
],
56+
"text": [
57+
"claude-2.1",
58+
"claude-2.0",
59+
"claude-instant-1.2"
60+
],
61+
"image":[],
62+
"audio":[]
63+
},
64+
"cohere": {
65+
"env_variable": "COHERE_API_KEY",
66+
"chat": [
67+
"command-light",
68+
"command-light-nightly",
69+
"command",
70+
"command-nightly"
71+
],
72+
"text": [
73+
"command-light",
74+
"command-light-nightly",
75+
"command",
76+
"command-nightly"
77+
],
78+
"image":[],
79+
"audio":[]
80+
},
81+
"langchain": {
82+
"env_variable": "OPENAI_API_KEY",
83+
"chat": [
84+
"gpt-4o",
85+
"gpt-4-0125-preview",
86+
"gpt-4-turbo-preview",
87+
"gpt-4-1106-preview",
88+
"gpt-4-vision-preview",
89+
"gpt-4",
90+
"gpt-4-0613",
91+
"gpt-3.5-turbo",
92+
"gpt-3.5-turbo-0125",
93+
"gpt-3.5-turbo-1106"
94+
],
95+
"text":[],
96+
"image":[],
97+
"audio":[]
98+
},
99+
"llamaindex":{
100+
"env_variable": "LLAMA_INDEX_API_KEY",
101+
"HuggingFaceEmbedding": [
102+
"sentence-transformers/all-MiniLM-L6-v2",
103+
"sentence-transformers/LaBSE"
104+
],
105+
"OpenAIEmbedding": [
106+
"text-embedding-ada-002",
107+
"text-embedding-3-large"
108+
],
109+
"chat":[],
110+
"text":[],
111+
"image":[],
112+
"audio":[]
26113
}
27114
}

0 commit comments

Comments
 (0)