Skip to content

feat: add variables and API Key support #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 31, 2023

Conversation

sachyco
Copy link
Contributor

@sachyco sachyco commented Jul 31, 2023

Changes:

  • Add API key to header
  • Add variables argument to requests
  • Add best_result convenience property to CompletionResponse
  • Improve README & examples.
  • Fix truncateVariables argument (I set to to a bool before for some reason?

Copy link

@heikir heikir left a comment

Choose a reason for hiding this comment

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

Looks good!

) -> requests.Response:
if api_key is None:
raise CommonbaseException(
"A Commonbase API key must be provided with every request."
Copy link

Choose a reason for hiding this comment

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

Add link to where you can generate a new key?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will open an issue to add this once we merge the API Key PR in the monorepo

@sachyco sachyco merged commit 0c3256b into main Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants