Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
pull api key from env if not supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
Bam4d committed Dec 8, 2023
1 parent 7cbb42e commit fe2763b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class MistralClient {
* @param {*} apiKey
* @param {*} endpoint
*/
constructor(apiKey, endpoint = ENDPOINT) {
constructor(apiKey=process.env.MISTRAL_API_KEY, endpoint = ENDPOINT) {
this.endpoint = endpoint;
this.apiKey = apiKey;

Expand Down

0 comments on commit fe2763b

Please sign in to comment.