Skip to content
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

fix: get api key at client initialisation: #57

Merged
merged 1 commit into from
May 23, 2024

Conversation

antoine-lizee
Copy link
Contributor

@antoine-lizee antoine-lizee commented Feb 26, 2024

Currently, it's done at interpretation time, disallowing environment modification.

I also added an Exception instead of going all the way to triggering a request that will invariably come back "unauthorized".

Note: I took the liberty to move the shared init logic to the base client, not sure if that goes in the direction that you guys have in mind.

Currently, it's done at interpretation time, disallowing
environment modification
@fuegoio
Copy link
Collaborator

fuegoio commented May 23, 2024

You are right thank you very much for your contribution!

@fuegoio fuegoio merged commit 374fd01 into mistralai:main May 23, 2024
wilsonsilva added a commit to wilsonsilva/mistral that referenced this pull request May 23, 2024
wilsonsilva added a commit to wilsonsilva/mistral that referenced this pull request May 23, 2024
wilsonsilva added a commit to wilsonsilva/mistral that referenced this pull request May 23, 2024
wilsonsilva added a commit to wilsonsilva/mistral that referenced this pull request May 23, 2024
wilsonsilva added a commit to wilsonsilva/mistral that referenced this pull request May 23, 2024
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.

2 participants