Skip to content

Conversation

@ashwinb
Copy link
Contributor

@ashwinb ashwinb commented Jan 29, 2025

Update for client SDK, new docs and simpler OpenAPI spec.

  • client-version and provider-data headers are not added to the spec anymore. we don't want these parameters to pollute every single API method doc.
  • we can just work by initializing the client with these headers once
  • enums are flattened in the OpenAPI spec (no separate schema type registered for them)

@ashwinb
Copy link
Contributor Author

ashwinb commented Jan 29, 2025

tests/client-sdk pass

@ashwinb ashwinb merged commit c57d9ec into main Jan 29, 2025
2 checks passed
@ashwinb ashwinb deleted the spec_update branch January 29, 2025 17:59
ashwinb added a commit to llamastack/llama-stack that referenced this pull request Jan 29, 2025
We desperately need to document our APIs. This is the basic requirement
of having a Spec :)

This PR updates the OpenAPI generator so documentation for request
parameters and object fields can be properly added to the OpenAPI specs.
From there, this should get picked by Stainless, etc.

## Test Plan:

Updated client-sdk (See
llamastack/llama-stack-client-python#104) and
then ran:

```bash
cd tests/client-sdk
LLAMA_STACK_CONFIG=../../llama_stack/templates/fireworks/run.yaml pytest -s -v inference/test_inference.py agents/test_agents.py
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants