Skip to content

Conversation

@ehhuang
Copy link
Contributor

@ehhuang ehhuang commented Feb 6, 2025

What does this PR do?

Sync stainless SDK

Test Plan

Sources

Please link relevant resources if necessary.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Ran pre-commit to handle lint / formatting issues.
  • Read the contributor guideline,
    Pull Request section?
  • Updated relevant documentation.
  • Wrote necessary unit or integration tests.

def qs(self) -> Querystring:
return Querystring(array_format="comma")

@property
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ehhuang how did you get these changes, this was not supposed to be here yet because adding api_key Stainless config was only in a dev branch but not in main. It's ok if we leave this here though we will just need to remove api key changes from the sync_stainless script.

This automatically infers the `api_key` argument from the `LLAMA_STACK_API_KEY` environment variable if it is not provided.
"""
if api_key is None:
api_key = os.environ.get("LLAMA_STACK_API_KEY")
Copy link
Contributor

@vladimirivic vladimirivic Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should name this LLAMA_STACK_CLIENT_API_KEY

so it has the same prefix as LLAMA_STACK_CLIENT_BASE_URL. The env name is defined in the Stainless config.

@ehhuang
Copy link
Contributor Author

ehhuang commented Feb 6, 2025

closing in favor of #129

@ehhuang ehhuang closed this Feb 6, 2025
@ashwinb ashwinb deleted the ehhuang_agent branch August 14, 2025 20:42
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.

3 participants