Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.

Commit 25c1e49

Browse files
feat(api): update via SDK Studio
1 parent 4a54d61 commit 25c1e49

File tree

10 files changed

+64
-778
lines changed

10 files changed

+64
-778
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 105
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-001fdbbf185bc9fc18521e55461f50dbd77b2f6bdf4b9565fe18a5ade77004dd.yml
3-
openapi_spec_hash: f410f7b9ebf460becbfc1427256f68e8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-1cdc29778f32a03666a1933885fc6c9411e710d6f140303847bad5f9fb046e51.yml
3+
openapi_spec_hash: 691e467be91172e5a2db6a216cce1cc1
44
config_hash: e7d2a81bdf0160da1d41afbaac55d4d2

src/llama_stack_client/resources/vector_stores/vector_stores.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ def with_streaming_response(self) -> VectorStoresResourceWithStreamingResponse:
6666
def create(
6767
self,
6868
*,
69-
name: str,
7069
chunking_strategy: Dict[str, Union[bool, float, str, Iterable[object], object, None]] | NotGiven = NOT_GIVEN,
7170
embedding_dimension: int | NotGiven = NOT_GIVEN,
7271
embedding_model: str | NotGiven = NOT_GIVEN,
7372
expires_after: Dict[str, Union[bool, float, str, Iterable[object], object, None]] | NotGiven = NOT_GIVEN,
7473
file_ids: List[str] | NotGiven = NOT_GIVEN,
7574
metadata: Dict[str, Union[bool, float, str, Iterable[object], object, None]] | NotGiven = NOT_GIVEN,
75+
name: str | NotGiven = NOT_GIVEN,
7676
provider_id: str | NotGiven = NOT_GIVEN,
7777
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7878
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -85,8 +85,6 @@ def create(
8585
Creates a vector store.
8686
8787
Args:
88-
name: A name for the vector store.
89-
9088
chunking_strategy: The chunking strategy used to chunk the file(s). If not set, will use the `auto`
9189
strategy.
9290
@@ -101,6 +99,8 @@ def create(
10199
102100
metadata: Set of 16 key-value pairs that can be attached to an object.
103101
102+
name: A name for the vector store.
103+
104104
provider_id: The ID of the provider to use for this vector store.
105105
106106
extra_headers: Send extra headers
@@ -115,13 +115,13 @@ def create(
115115
"/v1/openai/v1/vector_stores",
116116
body=maybe_transform(
117117
{
118-
"name": name,
119118
"chunking_strategy": chunking_strategy,
120119
"embedding_dimension": embedding_dimension,
121120
"embedding_model": embedding_model,
122121
"expires_after": expires_after,
123122
"file_ids": file_ids,
124123
"metadata": metadata,
124+
"name": name,
125125
"provider_id": provider_id,
126126
},
127127
vector_store_create_params.VectorStoreCreateParams,
@@ -399,13 +399,13 @@ def with_streaming_response(self) -> AsyncVectorStoresResourceWithStreamingRespo
399399
async def create(
400400
self,
401401
*,
402-
name: str,
403402
chunking_strategy: Dict[str, Union[bool, float, str, Iterable[object], object, None]] | NotGiven = NOT_GIVEN,
404403
embedding_dimension: int | NotGiven = NOT_GIVEN,
405404
embedding_model: str | NotGiven = NOT_GIVEN,
406405
expires_after: Dict[str, Union[bool, float, str, Iterable[object], object, None]] | NotGiven = NOT_GIVEN,
407406
file_ids: List[str] | NotGiven = NOT_GIVEN,
408407
metadata: Dict[str, Union[bool, float, str, Iterable[object], object, None]] | NotGiven = NOT_GIVEN,
408+
name: str | NotGiven = NOT_GIVEN,
409409
provider_id: str | NotGiven = NOT_GIVEN,
410410
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
411411
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -418,8 +418,6 @@ async def create(
418418
Creates a vector store.
419419
420420
Args:
421-
name: A name for the vector store.
422-
423421
chunking_strategy: The chunking strategy used to chunk the file(s). If not set, will use the `auto`
424422
strategy.
425423
@@ -434,6 +432,8 @@ async def create(
434432
435433
metadata: Set of 16 key-value pairs that can be attached to an object.
436434
435+
name: A name for the vector store.
436+
437437
provider_id: The ID of the provider to use for this vector store.
438438
439439
extra_headers: Send extra headers
@@ -448,13 +448,13 @@ async def create(
448448
"/v1/openai/v1/vector_stores",
449449
body=await async_maybe_transform(
450450
{
451-
"name": name,
452451
"chunking_strategy": chunking_strategy,
453452
"embedding_dimension": embedding_dimension,
454453
"embedding_model": embedding_model,
455454
"expires_after": expires_after,
456455
"file_ids": file_ids,
457456
"metadata": metadata,
457+
"name": name,
458458
"provider_id": provider_id,
459459
},
460460
vector_store_create_params.VectorStoreCreateParams,

src/llama_stack_client/types/chat/completion_create_params.py

Lines changed: 4 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,14 @@
1515
"MessageOpenAIUserMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL",
1616
"MessageOpenAISystemMessageParam",
1717
"MessageOpenAISystemMessageParamContentUnionMember1",
18-
"MessageOpenAISystemMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam",
19-
"MessageOpenAISystemMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam",
20-
"MessageOpenAISystemMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL",
2118
"MessageOpenAIAssistantMessageParam",
2219
"MessageOpenAIAssistantMessageParamContentUnionMember1",
23-
"MessageOpenAIAssistantMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam",
24-
"MessageOpenAIAssistantMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam",
25-
"MessageOpenAIAssistantMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL",
2620
"MessageOpenAIAssistantMessageParamToolCall",
2721
"MessageOpenAIAssistantMessageParamToolCallFunction",
2822
"MessageOpenAIToolMessageParam",
2923
"MessageOpenAIToolMessageParamContentUnionMember1",
30-
"MessageOpenAIToolMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam",
31-
"MessageOpenAIToolMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam",
32-
"MessageOpenAIToolMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL",
3324
"MessageOpenAIDeveloperMessageParam",
3425
"MessageOpenAIDeveloperMessageParamContentUnionMember1",
35-
"MessageOpenAIDeveloperMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam",
36-
"MessageOpenAIDeveloperMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam",
37-
"MessageOpenAIDeveloperMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL",
3826
"ResponseFormat",
3927
"ResponseFormatOpenAIResponseFormatText",
4028
"ResponseFormatOpenAIResponseFormatJsonSchema",
@@ -156,38 +144,12 @@ class MessageOpenAIUserMessageParam(TypedDict, total=False):
156144
"""(Optional) The name of the user message participant."""
157145

158146

159-
class MessageOpenAISystemMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam(
160-
TypedDict, total=False
161-
):
147+
class MessageOpenAISystemMessageParamContentUnionMember1(TypedDict, total=False):
162148
text: Required[str]
163149

164150
type: Required[Literal["text"]]
165151

166152

167-
class MessageOpenAISystemMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL(
168-
TypedDict, total=False
169-
):
170-
url: Required[str]
171-
172-
detail: str
173-
174-
175-
class MessageOpenAISystemMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam(
176-
TypedDict, total=False
177-
):
178-
image_url: Required[
179-
MessageOpenAISystemMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL
180-
]
181-
182-
type: Required[Literal["image_url"]]
183-
184-
185-
MessageOpenAISystemMessageParamContentUnionMember1: TypeAlias = Union[
186-
MessageOpenAISystemMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam,
187-
MessageOpenAISystemMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam,
188-
]
189-
190-
191153
class MessageOpenAISystemMessageParam(TypedDict, total=False):
192154
content: Required[Union[str, Iterable[MessageOpenAISystemMessageParamContentUnionMember1]]]
193155
"""The content of the "system prompt".
@@ -204,38 +166,12 @@ class MessageOpenAISystemMessageParam(TypedDict, total=False):
204166
"""(Optional) The name of the system message participant."""
205167

206168

207-
class MessageOpenAIAssistantMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam(
208-
TypedDict, total=False
209-
):
169+
class MessageOpenAIAssistantMessageParamContentUnionMember1(TypedDict, total=False):
210170
text: Required[str]
211171

212172
type: Required[Literal["text"]]
213173

214174

215-
class MessageOpenAIAssistantMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL(
216-
TypedDict, total=False
217-
):
218-
url: Required[str]
219-
220-
detail: str
221-
222-
223-
class MessageOpenAIAssistantMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam(
224-
TypedDict, total=False
225-
):
226-
image_url: Required[
227-
MessageOpenAIAssistantMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL
228-
]
229-
230-
type: Required[Literal["image_url"]]
231-
232-
233-
MessageOpenAIAssistantMessageParamContentUnionMember1: TypeAlias = Union[
234-
MessageOpenAIAssistantMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam,
235-
MessageOpenAIAssistantMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam,
236-
]
237-
238-
239175
class MessageOpenAIAssistantMessageParamToolCallFunction(TypedDict, total=False):
240176
arguments: str
241177

@@ -266,34 +202,12 @@ class MessageOpenAIAssistantMessageParam(TypedDict, total=False):
266202
"""List of tool calls. Each tool call is an OpenAIChatCompletionToolCall object."""
267203

268204

269-
class MessageOpenAIToolMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam(TypedDict, total=False):
205+
class MessageOpenAIToolMessageParamContentUnionMember1(TypedDict, total=False):
270206
text: Required[str]
271207

272208
type: Required[Literal["text"]]
273209

274210

275-
class MessageOpenAIToolMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL(
276-
TypedDict, total=False
277-
):
278-
url: Required[str]
279-
280-
detail: str
281-
282-
283-
class MessageOpenAIToolMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam(TypedDict, total=False):
284-
image_url: Required[
285-
MessageOpenAIToolMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL
286-
]
287-
288-
type: Required[Literal["image_url"]]
289-
290-
291-
MessageOpenAIToolMessageParamContentUnionMember1: TypeAlias = Union[
292-
MessageOpenAIToolMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam,
293-
MessageOpenAIToolMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam,
294-
]
295-
296-
297211
class MessageOpenAIToolMessageParam(TypedDict, total=False):
298212
content: Required[Union[str, Iterable[MessageOpenAIToolMessageParamContentUnionMember1]]]
299213
"""The response content from the tool"""
@@ -305,38 +219,12 @@ class MessageOpenAIToolMessageParam(TypedDict, total=False):
305219
"""Unique identifier for the tool call this response is for"""
306220

307221

308-
class MessageOpenAIDeveloperMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam(
309-
TypedDict, total=False
310-
):
222+
class MessageOpenAIDeveloperMessageParamContentUnionMember1(TypedDict, total=False):
311223
text: Required[str]
312224

313225
type: Required[Literal["text"]]
314226

315227

316-
class MessageOpenAIDeveloperMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL(
317-
TypedDict, total=False
318-
):
319-
url: Required[str]
320-
321-
detail: str
322-
323-
324-
class MessageOpenAIDeveloperMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam(
325-
TypedDict, total=False
326-
):
327-
image_url: Required[
328-
MessageOpenAIDeveloperMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParamImageURL
329-
]
330-
331-
type: Required[Literal["image_url"]]
332-
333-
334-
MessageOpenAIDeveloperMessageParamContentUnionMember1: TypeAlias = Union[
335-
MessageOpenAIDeveloperMessageParamContentUnionMember1OpenAIChatCompletionContentPartTextParam,
336-
MessageOpenAIDeveloperMessageParamContentUnionMember1OpenAIChatCompletionContentPartImageParam,
337-
]
338-
339-
340228
class MessageOpenAIDeveloperMessageParam(TypedDict, total=False):
341229
content: Required[Union[str, Iterable[MessageOpenAIDeveloperMessageParamContentUnionMember1]]]
342230
"""The content of the developer message"""

0 commit comments

Comments
 (0)