Skip to content

Commit 4adcd2b

Browse files
authored
Merge branch 'main' into rename-aws-bedrock-api-key
2 parents e2a0b28 + fe91d33 commit 4adcd2b

File tree

332 files changed

+56498
-30422
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

332 files changed

+56498
-30422
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# These owners will be the default owners for everything in
44
# the repo. Unless a later match takes precedence,
5-
* @ashwinb @yanxi0830 @hardikjshah @raghotham @ehhuang @terrytangyuan @leseb @bbrowning @reluctantfuturist @mattf @slekkala1 @franciscojavierarceo
5+
* @ashwinb @yanxi0830 @hardikjshah @raghotham @ehhuang @leseb @bbrowning @reluctantfuturist @mattf @slekkala1 @franciscojavierarceo

.github/workflows/python-build-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
version: 0.7.6
3232

3333
- name: Build Llama Stack API package
34-
working-directory: src/llama-stack-api
34+
working-directory: src/llama_stack_api
3535
run: uv build
3636

3737
- name: Build Llama Stack package
3838
run: uv build
3939

4040
- name: Install Llama Stack package (with api stubs from local build)
4141
run: |
42-
uv pip install --find-links src/llama-stack-api/dist dist/*.whl
42+
uv pip install --find-links src/llama_stack_api/dist dist/*.whl
4343
4444
- name: Verify Llama Stack package
4545
run: |
@@ -48,3 +48,4 @@ jobs:
4848
command -v llama
4949
llama stack list-apis
5050
llama stack list-providers inference
51+
llama stack list-deps starter

.pre-commit-config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ repos:
4242
hooks:
4343
- id: ruff
4444
args: [ --fix ]
45-
exclude: ^(src/llama_stack/strong_typing/.*|src/llama-stack-api/llama_stack_api/strong_typing/.*)$
4645
- id: ruff-format
4746

4847
- repo: https://github.com/adamchainz/blacken-docs
@@ -106,16 +105,16 @@ repos:
106105
language: python
107106
pass_filenames: false
108107
require_serial: true
109-
files: ^src/llama_stack/providers/.*$
108+
files: ^src/llama_stack/providers/.*$|^scripts/run_openapi_generator.sh$
110109
- id: openapi-codegen
111110
name: API Spec Codegen
112111
additional_dependencies:
113112
- uv==0.7.8
114-
entry: sh -c './scripts/uv-run-with-index.sh run ./docs/openapi_generator/run_openapi_generator.sh > /dev/null'
113+
entry: sh -c './scripts/uv-run-with-index.sh run scripts/run_openapi_generator.sh'
115114
language: python
116115
pass_filenames: false
117116
require_serial: true
118-
files: ^src/llama_stack/apis/|^docs/openapi_generator/
117+
files: ^src/llama_stack_api/.*$
119118
- id: check-workflows-use-hashes
120119
name: Check GitHub Actions use SHA-pinned actions
121120
entry: ./scripts/check-workflows-use-hashes.sh

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ npm run serve
231231
If you modify or add new API endpoints, update the API documentation accordingly. You can do this by running the following command:
232232

233233
```bash
234-
uv run ./docs/openapi_generator/run_openapi_generator.sh
234+
uv run ./scripts/run_openapi_generator.sh
235235
```
236236

237237
The generated API schema will be available in `docs/static/`. Make sure to review the changes before committing.

client-sdks/stainless/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ These are the source-of-truth configuration files used to generate the Stainless
55

66
A small side note: notice the `.yml` suffixes since Stainless uses that suffix typically for its configuration files.
77

8-
These files go hand-in-hand. As of now, only the `openapi.yml` file is automatically generated using the `run_openapi_generator.sh` script.
8+
These files go hand-in-hand. As of now, only the `openapi.yml` file is automatically generated using the `scripts/run_openapi_generator.sh` script.

client-sdks/stainless/config.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ resources:
115115
sampling_params: SamplingParams
116116
scoring_result: ScoringResult
117117
system_message: SystemMessage
118-
query_result: RAGQueryResult
119-
document: RAGDocument
120-
query_config: RAGQueryConfig
121118
toolgroups:
122119
models:
123120
tool_group: ToolGroup
@@ -143,11 +140,6 @@ resources:
143140
endpoint: get /v1/tool-runtime/list-tools
144141
paginated: false
145142
invoke_tool: post /v1/tool-runtime/invoke
146-
subresources:
147-
rag_tool:
148-
methods:
149-
insert: post /v1/tool-runtime/rag-tool/insert
150-
query: post /v1/tool-runtime/rag-tool/query
151143

152144
responses:
153145
models:
@@ -173,6 +165,7 @@ resources:
173165
list:
174166
type: http
175167
endpoint: get /v1/responses/{response_id}/input_items
168+
paginated: false
176169

177170
prompts:
178171
models:
@@ -220,6 +213,9 @@ resources:
220213
create:
221214
type: http
222215
endpoint: post /v1/conversations/{conversation_id}/items
216+
delete:
217+
type: http
218+
endpoint: delete /v1/conversations/{conversation_id}/items/{item_id}
223219

224220
inspect:
225221
models:
@@ -252,6 +248,7 @@ resources:
252248
list:
253249
type: http
254250
endpoint: get /v1/chat/completions
251+
paginated: false
255252
retrieve:
256253
type: http
257254
endpoint: get /v1/chat/completions/{completion_id}
@@ -375,6 +372,7 @@ resources:
375372
endpoint: get /v1/scoring-functions
376373
paginated: false
377374
register: post /v1/scoring-functions
375+
unregister: delete /v1/scoring-functions/{scoring_fn_id}
378376
models:
379377
scoring_fn: ScoringFn
380378
scoring_fn_params: ScoringFnParams
@@ -392,6 +390,13 @@ resources:
392390
list_files_response: ListOpenAIFileResponse
393391
delete_file_response: OpenAIFileDeleteResponse
394392

393+
batches:
394+
methods:
395+
create: post /v1/batches
396+
list: get /v1/batches
397+
retrieve: get /v1/batches/{batch_id}
398+
cancel: post /v1/batches/{batch_id}/cancel
399+
395400
alpha:
396401
subresources:
397402
inference:
@@ -423,6 +428,7 @@ resources:
423428
endpoint: get /v1alpha/eval/benchmarks
424429
paginated: false
425430
register: post /v1alpha/eval/benchmarks
431+
unregister: delete /v1alpha/eval/benchmarks/{benchmark_id}
426432
models:
427433
benchmark: Benchmark
428434
list_benchmarks_response: ListBenchmarksResponse
@@ -519,7 +525,7 @@ readme:
519525
params: &ref_0 {}
520526
headline:
521527
type: request
522-
endpoint: post /v1/models
528+
endpoint: get /v1/models
523529
params: *ref_0
524530
pagination:
525531
type: request

0 commit comments

Comments
 (0)