ogx_open_client 1.0.3.dev2__py3-none-any.whl → 1.0.3.dev3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ogx_open_client/models/conversation_item_list.py +20 -3
- ogx_open_client/models/list_batches_response.py +20 -3
- ogx_open_client/models/open_ai_embeddings_response.py +20 -3
- ogx_open_client/models/open_ai_list_models_response.py +20 -3
- ogx_open_client/models/vector_store_file_content_response.py +20 -3
- ogx_open_client/models/vector_store_files_list_in_batch_response.py +20 -3
- ogx_open_client/models/vector_store_list_files_response.py +20 -3
- ogx_open_client/models/vector_store_list_response.py +20 -3
- ogx_open_client/models/vector_store_search_response_page.py +20 -3
- {ogx_open_client-1.0.3.dev2.dist-info → ogx_open_client-1.0.3.dev3.dist-info}/METADATA +1 -1
- {ogx_open_client-1.0.3.dev2.dist-info → ogx_open_client-1.0.3.dev3.dist-info}/RECORD +13 -13
- {ogx_open_client-1.0.3.dev2.dist-info → ogx_open_client-1.0.3.dev3.dist-info}/WHEEL +0 -0
- {ogx_open_client-1.0.3.dev2.dist-info → ogx_open_client-1.0.3.dev3.dist-info}/top_level.txt +0 -0
|
@@ -33,12 +33,12 @@ class ConversationItemList(BaseModel):
|
|
|
33
33
|
"""
|
|
34
34
|
List of conversation items with pagination.
|
|
35
35
|
""" # noqa: E501
|
|
36
|
-
object: Optional[StrictStr] = Field(default=None, description="The type of object returned, must be list.")
|
|
37
36
|
data: List[OpenAIResponseMessageOutput11Variants] = Field(description="List of conversation items")
|
|
37
|
+
object: Optional[StrictStr] = Field(default=None, description="The type of object returned, must be list.")
|
|
38
38
|
first_id: Optional[StrictStr]
|
|
39
39
|
last_id: Optional[StrictStr]
|
|
40
40
|
has_more: StrictBool = Field(description="Whether there are more items available.")
|
|
41
|
-
__properties: ClassVar[list[str]] = ["
|
|
41
|
+
__properties: ClassVar[list[str]] = ["data", "object", "first_id", "last_id", "has_more"]
|
|
42
42
|
|
|
43
43
|
@field_validator('object')
|
|
44
44
|
def object_validate_enum(cls, value):
|
|
@@ -80,6 +80,23 @@ class ConversationItemList(BaseModel):
|
|
|
80
80
|
return value
|
|
81
81
|
|
|
82
82
|
|
|
83
|
+
# Make this model iterable/indexable to access the data field directly
|
|
84
|
+
# This allows: for item in response: ... and response[0]
|
|
85
|
+
def __iter__(self):
|
|
86
|
+
"""Iterate over items in the data field"""
|
|
87
|
+
return iter(self.data if self.data is not None else [])
|
|
88
|
+
|
|
89
|
+
def __getitem__(self, index):
|
|
90
|
+
"""Get item by index from the data field"""
|
|
91
|
+
if self.data is None:
|
|
92
|
+
raise IndexError("list index out of range")
|
|
93
|
+
return self.data[index]
|
|
94
|
+
|
|
95
|
+
def __len__(self):
|
|
96
|
+
"""Get length of the data field"""
|
|
97
|
+
return len(self.data) if self.data is not None else 0
|
|
98
|
+
|
|
99
|
+
|
|
83
100
|
|
|
84
101
|
def to_str(self) -> str:
|
|
85
102
|
"""Returns the string representation of the model using alias"""
|
|
@@ -146,8 +163,8 @@ class ConversationItemList(BaseModel):
|
|
|
146
163
|
|
|
147
164
|
_obj = cls.model_validate({
|
|
148
165
|
k: v for k, v in {
|
|
149
|
-
"object": obj.get("object"),
|
|
150
166
|
"data": [OpenAIResponseMessageOutput11Variants.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
167
|
+
"object": obj.get("object"),
|
|
151
168
|
"first_id": obj.get("first_id"),
|
|
152
169
|
"last_id": obj.get("last_id"),
|
|
153
170
|
"has_more": obj.get("has_more"),
|
|
@@ -33,12 +33,12 @@ class ListBatchesResponse(BaseModel):
|
|
|
33
33
|
"""
|
|
34
34
|
Response containing a list of batch objects.
|
|
35
35
|
""" # noqa: E501
|
|
36
|
-
object: Optional[StrictStr] = None
|
|
37
36
|
data: List[Batch] = Field(description="List of batch objects")
|
|
37
|
+
object: Optional[StrictStr] = None
|
|
38
38
|
first_id: Optional[StrictStr] = None
|
|
39
39
|
last_id: Optional[StrictStr] = None
|
|
40
40
|
has_more: Optional[StrictBool] = Field(default=False, description="Whether there are more batches available")
|
|
41
|
-
__properties: ClassVar[list[str]] = ["
|
|
41
|
+
__properties: ClassVar[list[str]] = ["data", "object", "first_id", "last_id", "has_more"]
|
|
42
42
|
|
|
43
43
|
@field_validator('object')
|
|
44
44
|
def object_validate_enum(cls, value):
|
|
@@ -80,6 +80,23 @@ class ListBatchesResponse(BaseModel):
|
|
|
80
80
|
return value
|
|
81
81
|
|
|
82
82
|
|
|
83
|
+
# Make this model iterable/indexable to access the data field directly
|
|
84
|
+
# This allows: for item in response: ... and response[0]
|
|
85
|
+
def __iter__(self):
|
|
86
|
+
"""Iterate over items in the data field"""
|
|
87
|
+
return iter(self.data if self.data is not None else [])
|
|
88
|
+
|
|
89
|
+
def __getitem__(self, index):
|
|
90
|
+
"""Get item by index from the data field"""
|
|
91
|
+
if self.data is None:
|
|
92
|
+
raise IndexError("list index out of range")
|
|
93
|
+
return self.data[index]
|
|
94
|
+
|
|
95
|
+
def __len__(self):
|
|
96
|
+
"""Get length of the data field"""
|
|
97
|
+
return len(self.data) if self.data is not None else 0
|
|
98
|
+
|
|
99
|
+
|
|
83
100
|
|
|
84
101
|
def to_str(self) -> str:
|
|
85
102
|
"""Returns the string representation of the model using alias"""
|
|
@@ -146,8 +163,8 @@ class ListBatchesResponse(BaseModel):
|
|
|
146
163
|
|
|
147
164
|
_obj = cls.model_validate({
|
|
148
165
|
k: v for k, v in {
|
|
149
|
-
"object": obj.get("object"),
|
|
150
166
|
"data": [Batch.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
167
|
+
"object": obj.get("object"),
|
|
151
168
|
"first_id": obj.get("first_id"),
|
|
152
169
|
"last_id": obj.get("last_id"),
|
|
153
170
|
"has_more": obj.get("has_more") if obj.get("has_more") is not None else False,
|
|
@@ -35,11 +35,11 @@ class OpenAIEmbeddingsResponse(BaseModel):
|
|
|
35
35
|
"""
|
|
36
36
|
Response from an OpenAI-compatible embeddings request.
|
|
37
37
|
""" # noqa: E501
|
|
38
|
-
object: Optional[StrictStr] = Field(default=None, description="The object type.")
|
|
39
38
|
data: Annotated[List[OpenAIEmbeddingData], Field(min_length=1)] = Field(description="List of embedding data objects.")
|
|
39
|
+
object: Optional[StrictStr] = Field(default=None, description="The object type.")
|
|
40
40
|
model: StrictStr = Field(description="The model that was used to generate the embeddings.")
|
|
41
41
|
usage: OpenAIEmbeddingUsage = Field(description="Usage information.")
|
|
42
|
-
__properties: ClassVar[list[str]] = ["
|
|
42
|
+
__properties: ClassVar[list[str]] = ["data", "object", "model", "usage"]
|
|
43
43
|
|
|
44
44
|
@field_validator('object')
|
|
45
45
|
def object_validate_enum(cls, value):
|
|
@@ -81,6 +81,23 @@ class OpenAIEmbeddingsResponse(BaseModel):
|
|
|
81
81
|
return value
|
|
82
82
|
|
|
83
83
|
|
|
84
|
+
# Make this model iterable/indexable to access the data field directly
|
|
85
|
+
# This allows: for item in response: ... and response[0]
|
|
86
|
+
def __iter__(self):
|
|
87
|
+
"""Iterate over items in the data field"""
|
|
88
|
+
return iter(self.data if self.data is not None else [])
|
|
89
|
+
|
|
90
|
+
def __getitem__(self, index):
|
|
91
|
+
"""Get item by index from the data field"""
|
|
92
|
+
if self.data is None:
|
|
93
|
+
raise IndexError("list index out of range")
|
|
94
|
+
return self.data[index]
|
|
95
|
+
|
|
96
|
+
def __len__(self):
|
|
97
|
+
"""Get length of the data field"""
|
|
98
|
+
return len(self.data) if self.data is not None else 0
|
|
99
|
+
|
|
100
|
+
|
|
84
101
|
|
|
85
102
|
def to_str(self) -> str:
|
|
86
103
|
"""Returns the string representation of the model using alias"""
|
|
@@ -149,8 +166,8 @@ class OpenAIEmbeddingsResponse(BaseModel):
|
|
|
149
166
|
|
|
150
167
|
_obj = cls.model_validate({
|
|
151
168
|
k: v for k, v in {
|
|
152
|
-
"object": obj.get("object"),
|
|
153
169
|
"data": [OpenAIEmbeddingData.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
170
|
+
"object": obj.get("object"),
|
|
154
171
|
"model": obj.get("model"),
|
|
155
172
|
"usage": OpenAIEmbeddingUsage.from_dict(obj["usage"]) if obj.get("usage") is not None else None,
|
|
156
173
|
}.items() if k in obj
|
|
@@ -33,9 +33,9 @@ class OpenAIListModelsResponse(BaseModel):
|
|
|
33
33
|
"""
|
|
34
34
|
Response containing a list of OpenAI model objects.
|
|
35
35
|
""" # noqa: E501
|
|
36
|
-
object: Optional[StrictStr] = None
|
|
37
36
|
data: List[OpenAIModel] = Field(description="List of OpenAI model objects.")
|
|
38
|
-
|
|
37
|
+
object: Optional[StrictStr] = None
|
|
38
|
+
__properties: ClassVar[list[str]] = ["data", "object"]
|
|
39
39
|
|
|
40
40
|
@field_validator('object')
|
|
41
41
|
def object_validate_enum(cls, value):
|
|
@@ -77,6 +77,23 @@ class OpenAIListModelsResponse(BaseModel):
|
|
|
77
77
|
return value
|
|
78
78
|
|
|
79
79
|
|
|
80
|
+
# Make this model iterable/indexable to access the data field directly
|
|
81
|
+
# This allows: for item in response: ... and response[0]
|
|
82
|
+
def __iter__(self):
|
|
83
|
+
"""Iterate over items in the data field"""
|
|
84
|
+
return iter(self.data if self.data is not None else [])
|
|
85
|
+
|
|
86
|
+
def __getitem__(self, index):
|
|
87
|
+
"""Get item by index from the data field"""
|
|
88
|
+
if self.data is None:
|
|
89
|
+
raise IndexError("list index out of range")
|
|
90
|
+
return self.data[index]
|
|
91
|
+
|
|
92
|
+
def __len__(self):
|
|
93
|
+
"""Get length of the data field"""
|
|
94
|
+
return len(self.data) if self.data is not None else 0
|
|
95
|
+
|
|
96
|
+
|
|
80
97
|
|
|
81
98
|
def to_str(self) -> str:
|
|
82
99
|
"""Returns the string representation of the model using alias"""
|
|
@@ -133,8 +150,8 @@ class OpenAIListModelsResponse(BaseModel):
|
|
|
133
150
|
|
|
134
151
|
_obj = cls.model_validate({
|
|
135
152
|
k: v for k, v in {
|
|
136
|
-
"object": obj.get("object"),
|
|
137
153
|
"data": [OpenAIModel.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
154
|
+
"object": obj.get("object"),
|
|
138
155
|
}.items() if k in obj
|
|
139
156
|
})
|
|
140
157
|
return _obj
|
|
@@ -33,11 +33,11 @@ class VectorStoreFileContentResponse(BaseModel):
|
|
|
33
33
|
"""
|
|
34
34
|
Represents the parsed content of a vector store file.
|
|
35
35
|
""" # noqa: E501
|
|
36
|
-
object: Optional[StrictStr] = None
|
|
37
36
|
data: List[VectorStoreContent]
|
|
37
|
+
object: Optional[StrictStr] = None
|
|
38
38
|
has_more: StrictBool
|
|
39
39
|
next_page: Optional[StrictStr] = None
|
|
40
|
-
__properties: ClassVar[list[str]] = ["
|
|
40
|
+
__properties: ClassVar[list[str]] = ["data", "object", "has_more", "next_page"]
|
|
41
41
|
|
|
42
42
|
@field_validator('object')
|
|
43
43
|
def object_validate_enum(cls, value):
|
|
@@ -79,6 +79,23 @@ class VectorStoreFileContentResponse(BaseModel):
|
|
|
79
79
|
return value
|
|
80
80
|
|
|
81
81
|
|
|
82
|
+
# Make this model iterable/indexable to access the data field directly
|
|
83
|
+
# This allows: for item in response: ... and response[0]
|
|
84
|
+
def __iter__(self):
|
|
85
|
+
"""Iterate over items in the data field"""
|
|
86
|
+
return iter(self.data if self.data is not None else [])
|
|
87
|
+
|
|
88
|
+
def __getitem__(self, index):
|
|
89
|
+
"""Get item by index from the data field"""
|
|
90
|
+
if self.data is None:
|
|
91
|
+
raise IndexError("list index out of range")
|
|
92
|
+
return self.data[index]
|
|
93
|
+
|
|
94
|
+
def __len__(self):
|
|
95
|
+
"""Get length of the data field"""
|
|
96
|
+
return len(self.data) if self.data is not None else 0
|
|
97
|
+
|
|
98
|
+
|
|
82
99
|
|
|
83
100
|
def to_str(self) -> str:
|
|
84
101
|
"""Returns the string representation of the model using alias"""
|
|
@@ -140,8 +157,8 @@ class VectorStoreFileContentResponse(BaseModel):
|
|
|
140
157
|
|
|
141
158
|
_obj = cls.model_validate({
|
|
142
159
|
k: v for k, v in {
|
|
143
|
-
"object": obj.get("object"),
|
|
144
160
|
"data": [VectorStoreContent.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
161
|
+
"object": obj.get("object"),
|
|
145
162
|
"has_more": obj.get("has_more"),
|
|
146
163
|
"next_page": obj.get("next_page"),
|
|
147
164
|
}.items() if k in obj
|
|
@@ -33,12 +33,12 @@ class VectorStoreFilesListInBatchResponse(BaseModel):
|
|
|
33
33
|
"""
|
|
34
34
|
Response from listing files in a vector store file batch.
|
|
35
35
|
""" # noqa: E501
|
|
36
|
-
object: Optional[StrictStr] = None
|
|
37
36
|
data: List[VectorStoreFileObject]
|
|
37
|
+
object: Optional[StrictStr] = None
|
|
38
38
|
first_id: StrictStr
|
|
39
39
|
last_id: StrictStr
|
|
40
40
|
has_more: StrictBool
|
|
41
|
-
__properties: ClassVar[list[str]] = ["
|
|
41
|
+
__properties: ClassVar[list[str]] = ["data", "object", "first_id", "last_id", "has_more"]
|
|
42
42
|
|
|
43
43
|
@field_validator('object')
|
|
44
44
|
def object_validate_enum(cls, value):
|
|
@@ -80,6 +80,23 @@ class VectorStoreFilesListInBatchResponse(BaseModel):
|
|
|
80
80
|
return value
|
|
81
81
|
|
|
82
82
|
|
|
83
|
+
# Make this model iterable/indexable to access the data field directly
|
|
84
|
+
# This allows: for item in response: ... and response[0]
|
|
85
|
+
def __iter__(self):
|
|
86
|
+
"""Iterate over items in the data field"""
|
|
87
|
+
return iter(self.data if self.data is not None else [])
|
|
88
|
+
|
|
89
|
+
def __getitem__(self, index):
|
|
90
|
+
"""Get item by index from the data field"""
|
|
91
|
+
if self.data is None:
|
|
92
|
+
raise IndexError("list index out of range")
|
|
93
|
+
return self.data[index]
|
|
94
|
+
|
|
95
|
+
def __len__(self):
|
|
96
|
+
"""Get length of the data field"""
|
|
97
|
+
return len(self.data) if self.data is not None else 0
|
|
98
|
+
|
|
99
|
+
|
|
83
100
|
|
|
84
101
|
def to_str(self) -> str:
|
|
85
102
|
"""Returns the string representation of the model using alias"""
|
|
@@ -136,8 +153,8 @@ class VectorStoreFilesListInBatchResponse(BaseModel):
|
|
|
136
153
|
|
|
137
154
|
_obj = cls.model_validate({
|
|
138
155
|
k: v for k, v in {
|
|
139
|
-
"object": obj.get("object"),
|
|
140
156
|
"data": [VectorStoreFileObject.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
157
|
+
"object": obj.get("object"),
|
|
141
158
|
"first_id": obj.get("first_id"),
|
|
142
159
|
"last_id": obj.get("last_id"),
|
|
143
160
|
"has_more": obj.get("has_more"),
|
|
@@ -33,12 +33,12 @@ class VectorStoreListFilesResponse(BaseModel):
|
|
|
33
33
|
"""
|
|
34
34
|
Response from listing files in a vector store.
|
|
35
35
|
""" # noqa: E501
|
|
36
|
-
object: Optional[StrictStr] = None
|
|
37
36
|
data: List[VectorStoreFileObject]
|
|
37
|
+
object: Optional[StrictStr] = None
|
|
38
38
|
first_id: StrictStr
|
|
39
39
|
last_id: StrictStr
|
|
40
40
|
has_more: StrictBool
|
|
41
|
-
__properties: ClassVar[list[str]] = ["
|
|
41
|
+
__properties: ClassVar[list[str]] = ["data", "object", "first_id", "last_id", "has_more"]
|
|
42
42
|
|
|
43
43
|
@field_validator('object')
|
|
44
44
|
def object_validate_enum(cls, value):
|
|
@@ -80,6 +80,23 @@ class VectorStoreListFilesResponse(BaseModel):
|
|
|
80
80
|
return value
|
|
81
81
|
|
|
82
82
|
|
|
83
|
+
# Make this model iterable/indexable to access the data field directly
|
|
84
|
+
# This allows: for item in response: ... and response[0]
|
|
85
|
+
def __iter__(self):
|
|
86
|
+
"""Iterate over items in the data field"""
|
|
87
|
+
return iter(self.data if self.data is not None else [])
|
|
88
|
+
|
|
89
|
+
def __getitem__(self, index):
|
|
90
|
+
"""Get item by index from the data field"""
|
|
91
|
+
if self.data is None:
|
|
92
|
+
raise IndexError("list index out of range")
|
|
93
|
+
return self.data[index]
|
|
94
|
+
|
|
95
|
+
def __len__(self):
|
|
96
|
+
"""Get length of the data field"""
|
|
97
|
+
return len(self.data) if self.data is not None else 0
|
|
98
|
+
|
|
99
|
+
|
|
83
100
|
|
|
84
101
|
def to_str(self) -> str:
|
|
85
102
|
"""Returns the string representation of the model using alias"""
|
|
@@ -136,8 +153,8 @@ class VectorStoreListFilesResponse(BaseModel):
|
|
|
136
153
|
|
|
137
154
|
_obj = cls.model_validate({
|
|
138
155
|
k: v for k, v in {
|
|
139
|
-
"object": obj.get("object"),
|
|
140
156
|
"data": [VectorStoreFileObject.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
157
|
+
"object": obj.get("object"),
|
|
141
158
|
"first_id": obj.get("first_id"),
|
|
142
159
|
"last_id": obj.get("last_id"),
|
|
143
160
|
"has_more": obj.get("has_more"),
|
|
@@ -33,12 +33,12 @@ class VectorStoreListResponse(BaseModel):
|
|
|
33
33
|
"""
|
|
34
34
|
Response from listing vector stores.
|
|
35
35
|
""" # noqa: E501
|
|
36
|
-
object: Optional[StrictStr] = None
|
|
37
36
|
data: List[VectorStoreObject]
|
|
37
|
+
object: Optional[StrictStr] = None
|
|
38
38
|
first_id: StrictStr
|
|
39
39
|
last_id: StrictStr
|
|
40
40
|
has_more: StrictBool
|
|
41
|
-
__properties: ClassVar[list[str]] = ["
|
|
41
|
+
__properties: ClassVar[list[str]] = ["data", "object", "first_id", "last_id", "has_more"]
|
|
42
42
|
|
|
43
43
|
@field_validator('object')
|
|
44
44
|
def object_validate_enum(cls, value):
|
|
@@ -80,6 +80,23 @@ class VectorStoreListResponse(BaseModel):
|
|
|
80
80
|
return value
|
|
81
81
|
|
|
82
82
|
|
|
83
|
+
# Make this model iterable/indexable to access the data field directly
|
|
84
|
+
# This allows: for item in response: ... and response[0]
|
|
85
|
+
def __iter__(self):
|
|
86
|
+
"""Iterate over items in the data field"""
|
|
87
|
+
return iter(self.data if self.data is not None else [])
|
|
88
|
+
|
|
89
|
+
def __getitem__(self, index):
|
|
90
|
+
"""Get item by index from the data field"""
|
|
91
|
+
if self.data is None:
|
|
92
|
+
raise IndexError("list index out of range")
|
|
93
|
+
return self.data[index]
|
|
94
|
+
|
|
95
|
+
def __len__(self):
|
|
96
|
+
"""Get length of the data field"""
|
|
97
|
+
return len(self.data) if self.data is not None else 0
|
|
98
|
+
|
|
99
|
+
|
|
83
100
|
|
|
84
101
|
def to_str(self) -> str:
|
|
85
102
|
"""Returns the string representation of the model using alias"""
|
|
@@ -136,8 +153,8 @@ class VectorStoreListResponse(BaseModel):
|
|
|
136
153
|
|
|
137
154
|
_obj = cls.model_validate({
|
|
138
155
|
k: v for k, v in {
|
|
139
|
-
"object": obj.get("object"),
|
|
140
156
|
"data": [VectorStoreObject.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
157
|
+
"object": obj.get("object"),
|
|
141
158
|
"first_id": obj.get("first_id"),
|
|
142
159
|
"last_id": obj.get("last_id"),
|
|
143
160
|
"has_more": obj.get("has_more"),
|
|
@@ -33,12 +33,12 @@ class VectorStoreSearchResponsePage(BaseModel):
|
|
|
33
33
|
"""
|
|
34
34
|
Paginated response from searching a vector store.
|
|
35
35
|
""" # noqa: E501
|
|
36
|
+
data: List[VectorStoreSearchResponse]
|
|
36
37
|
object: Optional[StrictStr] = None
|
|
37
38
|
search_query: List[StrictStr]
|
|
38
|
-
data: List[VectorStoreSearchResponse]
|
|
39
39
|
has_more: StrictBool
|
|
40
40
|
next_page: Optional[StrictStr] = None
|
|
41
|
-
__properties: ClassVar[list[str]] = ["
|
|
41
|
+
__properties: ClassVar[list[str]] = ["data", "object", "search_query", "has_more", "next_page"]
|
|
42
42
|
|
|
43
43
|
@field_validator('object')
|
|
44
44
|
def object_validate_enum(cls, value):
|
|
@@ -80,6 +80,23 @@ class VectorStoreSearchResponsePage(BaseModel):
|
|
|
80
80
|
return value
|
|
81
81
|
|
|
82
82
|
|
|
83
|
+
# Make this model iterable/indexable to access the data field directly
|
|
84
|
+
# This allows: for item in response: ... and response[0]
|
|
85
|
+
def __iter__(self):
|
|
86
|
+
"""Iterate over items in the data field"""
|
|
87
|
+
return iter(self.data if self.data is not None else [])
|
|
88
|
+
|
|
89
|
+
def __getitem__(self, index):
|
|
90
|
+
"""Get item by index from the data field"""
|
|
91
|
+
if self.data is None:
|
|
92
|
+
raise IndexError("list index out of range")
|
|
93
|
+
return self.data[index]
|
|
94
|
+
|
|
95
|
+
def __len__(self):
|
|
96
|
+
"""Get length of the data field"""
|
|
97
|
+
return len(self.data) if self.data is not None else 0
|
|
98
|
+
|
|
99
|
+
|
|
83
100
|
|
|
84
101
|
def to_str(self) -> str:
|
|
85
102
|
"""Returns the string representation of the model using alias"""
|
|
@@ -141,9 +158,9 @@ class VectorStoreSearchResponsePage(BaseModel):
|
|
|
141
158
|
|
|
142
159
|
_obj = cls.model_validate({
|
|
143
160
|
k: v for k, v in {
|
|
161
|
+
"data": [VectorStoreSearchResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
144
162
|
"object": obj.get("object"),
|
|
145
163
|
"search_query": obj.get("search_query"),
|
|
146
|
-
"data": [VectorStoreSearchResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
147
164
|
"has_more": obj.get("has_more"),
|
|
148
165
|
"next_page": obj.get("next_page"),
|
|
149
166
|
}.items() if k in obj
|
|
@@ -764,7 +764,7 @@ ogx_open_client/models/conversation_item.py,sha256=ioF9CSC0oKrwnO5IQ4kU2yJuxt5EN
|
|
|
764
764
|
ogx_open_client/models/conversation_item_create_request.py,sha256=NCwYyZmxuddPjvACuD6JwC_U9Jow_iNCcaLK1yTmmcM,5453
|
|
765
765
|
ogx_open_client/models/conversation_item_deleted_resource.py,sha256=gYGLl92g2riAa_2RdmZ52OED2N8rNR8qiAvy0PizXlE,4717
|
|
766
766
|
ogx_open_client/models/conversation_item_include.py,sha256=y_JRHDUv4RVBfdGlfzVcOahazJCpcxWAD5xagQwy3fg,1834
|
|
767
|
-
ogx_open_client/models/conversation_item_list.py,sha256=
|
|
767
|
+
ogx_open_client/models/conversation_item_list.py,sha256=577Uc1Li2LerXhZtCVQPY3zVnwVu9tTGo2znPZA1mBo,6544
|
|
768
768
|
ogx_open_client/models/conversation_message.py,sha256=7uBax-2C4LqFfx-4JazWMtC16XydTl_fD4YBcOcyugE,5128
|
|
769
769
|
ogx_open_client/models/create_batch_request.py,sha256=0ibPGC_VZhFgOGB7AnoerQkKM3_MysHwICSovTavaqE,5386
|
|
770
770
|
ogx_open_client/models/create_conversation_request.py,sha256=XY8H3uWR7kDmKuCrJ0ISPi8kP8XAYcf9uGCnwiwDCRw,5837
|
|
@@ -837,7 +837,7 @@ ogx_open_client/models/job_status.py,sha256=x5wj9BwueB-ywMcnOspEHtAevloN_Y74CpW8
|
|
|
837
837
|
ogx_open_client/models/json_schema_response_format.py,sha256=260XJidQYTLoey1fVtTmYBbGJSKP12Gg1Xzp1mxGslo,4563
|
|
838
838
|
ogx_open_client/models/json_type.py,sha256=gHkU4jSXFu1dIWck-7jXt6tTGpeDO1-lE30vmSOBqPI,4217
|
|
839
839
|
ogx_open_client/models/list_batches_request.py,sha256=ri6RKSm7pRGlUY7Swa3J7f7TkIx4BEdz9G6QTlX6vEY,4382
|
|
840
|
-
ogx_open_client/models/list_batches_response.py,sha256=
|
|
840
|
+
ogx_open_client/models/list_batches_response.py,sha256=1q4IK322ZFuA5XOz_1j9Yj6lNJw59CF6CelEzmJX2n4,6417
|
|
841
841
|
ogx_open_client/models/list_chat_completion_messages_request.py,sha256=O4WpZJqfchmmq0frjPmKFf-pQqyUaANCXn_V6k_sCYA,5111
|
|
842
842
|
ogx_open_client/models/list_chat_completions_request.py,sha256=pIsrrwQ1YLGUc9VfPIMI_enm2d18NB9-_8HAAe9vBeQ,5178
|
|
843
843
|
ogx_open_client/models/list_connector_tools_request.py,sha256=DlwQiCsRGbOfhGt16aqG5nuCnhXW0Da-tHdKdKQqqaQ,4050
|
|
@@ -911,7 +911,7 @@ ogx_open_client/models/open_ai_developer_message_param.py,sha256=wYVnROfE47Mhg78
|
|
|
911
911
|
ogx_open_client/models/open_ai_embedding_data.py,sha256=-ZKvHRSyCwHMOzeP0hMx29KWT-apRmz9qDpnVadK--E,5514
|
|
912
912
|
ogx_open_client/models/open_ai_embedding_usage.py,sha256=J3oHEz8IWIp8k4Lblvt07IvuxrUmqS2JY2F1vgBn0X4,4212
|
|
913
913
|
ogx_open_client/models/open_ai_embeddings_request_with_extra_body.py,sha256=tfzAiyN-WeH7JO8Wfhywrjq1fV1hVVgsiU9VmWGyOFc,6568
|
|
914
|
-
ogx_open_client/models/open_ai_embeddings_response.py,sha256=
|
|
914
|
+
ogx_open_client/models/open_ai_embeddings_response.py,sha256=5cugV6SwIUqsuiCUlzcQ41HoOuxmmfH1NB9mnQDcPlQ,6863
|
|
915
915
|
ogx_open_client/models/open_ai_file.py,sha256=twt1UvEt8Bj3toYyOzBuLs5zc2HQeNaMGuuIOs82Nbw,5242
|
|
916
916
|
ogx_open_client/models/open_ai_file_delete_response.py,sha256=03liLYosRNgSh8vK_SdZIBhAzJ64DinhkOUH0w_6r-Y,4647
|
|
917
917
|
ogx_open_client/models/open_ai_file_file.py,sha256=Fjc0yWVkDw0NX8zlIMQmERb0g2DmBEdDbIdKMuO0wRo,4811
|
|
@@ -920,7 +920,7 @@ ogx_open_client/models/open_ai_file_purpose.py,sha256=1Ei3_ZdaP4zjJrKAid8EgciM1x
|
|
|
920
920
|
ogx_open_client/models/open_ai_file_upload_purpose.py,sha256=uKdvxWPt3gCxR63DncZpgGELWW6-QpCLu0dEgXXH3WE,1460
|
|
921
921
|
ogx_open_client/models/open_ai_finish_reason.py,sha256=vvuMw6TlsvRVsR_m4m1_r_OLtWnJT95g9QxnsojTauE,1400
|
|
922
922
|
ogx_open_client/models/open_ai_image_url.py,sha256=kmTW4KbE3u5oFWdFMJXFcRaiNyPnz5apsfrMsnfWSjg,4659
|
|
923
|
-
ogx_open_client/models/open_ai_list_models_response.py,sha256=
|
|
923
|
+
ogx_open_client/models/open_ai_list_models_response.py,sha256=7kyXRtmn2UPdxoZYdcpT0IeyRe448xG0zljXsmKItBU,5626
|
|
924
924
|
ogx_open_client/models/open_ai_message_param.py,sha256=SnV9_mgjG1rmI6PlBJ22FBV9_N2dxLKVsYThL-kML4o,27732
|
|
925
925
|
ogx_open_client/models/open_ai_model.py,sha256=MOdV1YrVporMuy9Z8KxIWKpOQQemgIucxXd3V3tyZD8,5107
|
|
926
926
|
ogx_open_client/models/open_ai_response_annotation_citation.py,sha256=NuqyuSwMc5OlOWoMMsPldYYZRyT220mCrvnBe4oiG6Y,4656
|
|
@@ -1171,20 +1171,20 @@ ogx_open_client/models/vector_store_delete_response.py,sha256=Xsvexv8MiD7p4ExCCQ
|
|
|
1171
1171
|
ogx_open_client/models/vector_store_expiration_after.py,sha256=OW8Iqt_MsWIMr82EEzWhnoXxMSbhIsq-4MXtukxXR84,4563
|
|
1172
1172
|
ogx_open_client/models/vector_store_file_batch_file_entry.py,sha256=AC_flayPx0RQe3cvHwdUgt8pV7ui_NxHIA48ctgBKeo,7271
|
|
1173
1173
|
ogx_open_client/models/vector_store_file_batch_object.py,sha256=DO4yFjmGfBC-MITdywnWuN6KZ0prIrMJ8_PiyoOKGKc,5972
|
|
1174
|
-
ogx_open_client/models/vector_store_file_content_response.py,sha256=
|
|
1174
|
+
ogx_open_client/models/vector_store_file_content_response.py,sha256=p3NOwejch3wqWeNA9ufz00QBPIF9sRaqvK9ru86HhaQ,6081
|
|
1175
1175
|
ogx_open_client/models/vector_store_file_counts.py,sha256=fR_I1zI0dBlBYvzurhpgJXJdUTpcgUS_-OFA2bGptWk,4287
|
|
1176
1176
|
ogx_open_client/models/vector_store_file_delete_response.py,sha256=Olu_k6xFZ1r_tA7g95hiC3kOLFDOjKDnz8mnT-rnQhc,4493
|
|
1177
1177
|
ogx_open_client/models/vector_store_file_last_error.py,sha256=jWr1i10bRdO5uKUSubsnH9nc6Hcw7XLiy9Dm0r83dXw,4378
|
|
1178
1178
|
ogx_open_client/models/vector_store_file_object.py,sha256=TDoA1jVkHRoPrHCdxaKImYyzlppBl87kUm9nQEjp3lo,9317
|
|
1179
1179
|
ogx_open_client/models/vector_store_file_status.py,sha256=yWn0LfkN3A4QnPP9G45NNhFwkJDKaqHc9q91nT8octc,1375
|
|
1180
|
-
ogx_open_client/models/vector_store_files_list_in_batch_response.py,sha256=
|
|
1181
|
-
ogx_open_client/models/vector_store_list_files_response.py,sha256=
|
|
1182
|
-
ogx_open_client/models/vector_store_list_response.py,sha256=
|
|
1180
|
+
ogx_open_client/models/vector_store_files_list_in_batch_response.py,sha256=Pr5GrHyt7L1Mq3QgAAu00N9QPcuEhYyXs7atcQRN-ZQ,5898
|
|
1181
|
+
ogx_open_client/models/vector_store_list_files_response.py,sha256=a7vQtJmE8Xi6Gauf2EXmtomsyj0qI8IunBvwB9gaQTE,5866
|
|
1182
|
+
ogx_open_client/models/vector_store_list_response.py,sha256=DR1CNrgta3qt1pnx5s0VwHsVMRxH1334uXD874AYmpY,5824
|
|
1183
1183
|
ogx_open_client/models/vector_store_modify_request.py,sha256=Yph1C_-JHBslozYaFOqcVouJ8uHL5A2KJhfO3tE1JWU,5766
|
|
1184
1184
|
ogx_open_client/models/vector_store_object.py,sha256=8phuRHLrVJvXjxoJUjp4DYDX5R8iENA6RA3qEn_LIKg,8338
|
|
1185
1185
|
ogx_open_client/models/vector_store_search_request.py,sha256=Udp4rdF9XQ7FPEYNlVSijUOiTm7hbl1--NICxvg-m_o,5881
|
|
1186
1186
|
ogx_open_client/models/vector_store_search_response.py,sha256=1lwbAp53EPkqeK-sdm2dwfSWKvq70ZuxJMBEm7EXxQw,6109
|
|
1187
|
-
ogx_open_client/models/vector_store_search_response_page.py,sha256=
|
|
1187
|
+
ogx_open_client/models/vector_store_search_response_page.py,sha256=S_QrENlyiiTGucqJloB9WZwN0fZZo9WmR9nWT60d7GA,6210
|
|
1188
1188
|
ogx_open_client/models/vector_store_status.py,sha256=kbE4s15bXVHnZ7AVweP4TztvauKfLid8a4Jl2KQJCWk,1337
|
|
1189
1189
|
ogx_open_client/models/version_info.py,sha256=YMEbST18Mlbvkzb5PIiCE1n0sbtrSoAG9uZ8y-PBhP0,3980
|
|
1190
1190
|
ogx_open_client/models/web_search_action_find.py,sha256=6wG4-U6hQOvM4xgiBh5Jie_33rsAum0pkakFZYNL7hA,4436
|
|
@@ -1195,7 +1195,7 @@ ogx_open_client/models/web_search_action_search_web_search_action_open_page_web_
|
|
|
1195
1195
|
ogx_open_client/models/web_search_filters.py,sha256=t_LH0QTGucAdRejrYvlX3oLvA-Mf0RLy7dVgy6n61QM,4962
|
|
1196
1196
|
ogx_open_client/models/web_search_source.py,sha256=gPsU7GW5-7Iqzn5XTyxV57_FuhrGlobOsPGnEigvC2Q,4311
|
|
1197
1197
|
ogx_open_client/models/web_search_user_location.py,sha256=nHbX3UypGdQXoXn1DGhf7OsYoBX2PM_-Rx1FeLc521c,5456
|
|
1198
|
-
ogx_open_client-1.0.3.
|
|
1199
|
-
ogx_open_client-1.0.3.
|
|
1200
|
-
ogx_open_client-1.0.3.
|
|
1201
|
-
ogx_open_client-1.0.3.
|
|
1198
|
+
ogx_open_client-1.0.3.dev3.dist-info/METADATA,sha256=IdX_tgisOtLDgOaTa_j4v4vVAfF3Ns7UmZMvZcMPKsw,55038
|
|
1199
|
+
ogx_open_client-1.0.3.dev3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
1200
|
+
ogx_open_client-1.0.3.dev3.dist-info/top_level.txt,sha256=nFVXe9Ua-6was2Xnoc1PLZ4p2NpurisYP1kU-t1t-PU,27
|
|
1201
|
+
ogx_open_client-1.0.3.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|