Skip to content

Commit 837fd3a

Browse files
feat(api): updates to vector_store, etc.
1 parent 8a74be3 commit 837fd3a

File tree

15 files changed

+1575
-410
lines changed

15 files changed

+1575
-410
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 115
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-8a12a05ba6892999ac506f69d5cbbc7218f28ee1a11bf8e0e548c603435bb643.yml
3-
openapi_spec_hash: 871ce212a98bdad4a44ec7fbf58d9fcb
4-
config_hash: 4c1ba9dc45c31189cd1b039d003a3544
1+
configured_endpoints: 111
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-15a929a0b71de779accc56bd09d1e5f580e216affdb408cf9890bc7a37847e9e.yml
3+
openapi_spec_hash: 5db9f7c7e80427cfa0298cbb01689559
4+
config_hash: 06758df5c4f261f9c97eafcef7e0028f

api.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -210,21 +210,6 @@ Methods:
210210
- <code title="post /v1/vector-io/insert">client.VectorIo.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorIoService.Insert">Insert</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorIoInsertParams">VectorIoInsertParams</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
211211
- <code title="post /v1/vector-io/query">client.VectorIo.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorIoService.Query">Query</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorIoQueryParams">VectorIoQueryParams</a>) (<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#QueryChunksResponse">QueryChunksResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
212212

213-
# VectorDBs
214-
215-
Response Types:
216-
217-
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ListVectorDBsResponse">ListVectorDBsResponse</a>
218-
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorDBGetResponse">VectorDBGetResponse</a>
219-
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorDBRegisterResponse">VectorDBRegisterResponse</a>
220-
221-
Methods:
222-
223-
- <code title="get /v1/vector-dbs/{vector_db_id}">client.VectorDBs.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorDBService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, vectorDBID <a href="https://pkg.go.dev/builtin#string">string</a>) (<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorDBGetResponse">VectorDBGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
224-
- <code title="get /v1/vector-dbs">client.VectorDBs.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorDBService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) ([]<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ListVectorDBsResponseData">ListVectorDBsResponseData</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
225-
- <code title="post /v1/vector-dbs">client.VectorDBs.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorDBService.Register">Register</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorDBRegisterParams">VectorDBRegisterParams</a>) (<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorDBRegisterResponse">VectorDBRegisterResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
226-
- <code title="delete /v1/vector-dbs/{vector_db_id}">client.VectorDBs.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#VectorDBService.Unregister">Unregister</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, vectorDBID <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
227-
228213
# VectorStores
229214

230215
Response Types:

chat.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ func (r *ChatCompletionChunkChoice) UnmarshalJSON(data []byte) error {
9494
type ChatCompletionChunkChoiceDelta struct {
9595
// (Optional) The content of the delta
9696
Content string `json:"content"`
97+
// (Optional) The reasoning content from the model (non-standard, for o1/o3 models)
98+
ReasoningContent string `json:"reasoning_content"`
9799
// (Optional) The refusal of the delta
98100
Refusal string `json:"refusal"`
99101
// (Optional) The role of the delta
@@ -102,12 +104,13 @@ type ChatCompletionChunkChoiceDelta struct {
102104
ToolCalls []ChatCompletionChunkChoiceDeltaToolCall `json:"tool_calls"`
103105
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
104106
JSON struct {
105-
Content respjson.Field
106-
Refusal respjson.Field
107-
Role respjson.Field
108-
ToolCalls respjson.Field
109-
ExtraFields map[string]respjson.Field
110-
raw string
107+
Content respjson.Field
108+
ReasoningContent respjson.Field
109+
Refusal respjson.Field
110+
Role respjson.Field
111+
ToolCalls respjson.Field
112+
ExtraFields map[string]respjson.Field
113+
raw string
111114
} `json:"-"`
112115
}
113116

client.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ type Client struct {
2828
Chat ChatService
2929
Completions CompletionService
3030
VectorIo VectorIoService
31-
VectorDBs VectorDBService
3231
VectorStores VectorStoreService
3332
Models ModelService
3433
Providers ProviderService
@@ -78,7 +77,6 @@ func NewClient(opts ...option.RequestOption) (r Client) {
7877
r.Chat = NewChatService(opts...)
7978
r.Completions = NewCompletionService(opts...)
8079
r.VectorIo = NewVectorIoService(opts...)
81-
r.VectorDBs = NewVectorDBService(opts...)
8280
r.VectorStores = NewVectorStoreService(opts...)
8381
r.Models = NewModelService(opts...)
8482
r.Providers = NewProviderService(opts...)

completion.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ type CompletionNewParams struct {
242242
N param.Opt[int64] `json:"n,omitzero"`
243243
// (Optional) The penalty for repeated tokens.
244244
PresencePenalty param.Opt[float64] `json:"presence_penalty,omitzero"`
245-
PromptLogprobs param.Opt[int64] `json:"prompt_logprobs,omitzero"`
246245
// (Optional) The seed to use.
247246
Seed param.Opt[int64] `json:"seed,omitzero"`
248247
// (Optional) The suffix that should be appended to the completion.
@@ -252,8 +251,7 @@ type CompletionNewParams struct {
252251
// (Optional) The top p to use.
253252
TopP param.Opt[float64] `json:"top_p,omitzero"`
254253
// (Optional) The user to use.
255-
User param.Opt[string] `json:"user,omitzero"`
256-
GuidedChoice []string `json:"guided_choice,omitzero"`
254+
User param.Opt[string] `json:"user,omitzero"`
257255
// (Optional) The logit bias to use.
258256
LogitBias map[string]float64 `json:"logit_bias,omitzero"`
259257
// (Optional) The stop tokens to use.

completion_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ func TestCompletionNewWithOptionalParams(t *testing.T) {
3232
BestOf: llamastackclient.Int(0),
3333
Echo: llamastackclient.Bool(true),
3434
FrequencyPenalty: llamastackclient.Float(0),
35-
GuidedChoice: []string{"string"},
3635
LogitBias: map[string]float64{
3736
"foo": 0,
3837
},
3938
Logprobs: llamastackclient.Bool(true),
4039
MaxTokens: llamastackclient.Int(0),
4140
N: llamastackclient.Int(0),
4241
PresencePenalty: llamastackclient.Float(0),
43-
PromptLogprobs: llamastackclient.Int(0),
4442
Seed: llamastackclient.Int(0),
4543
Stop: llamastackclient.CompletionNewParamsStopUnion{
4644
OfString: llamastackclient.String("string"),

0 commit comments

Comments
 (0)