Skip to content

Commit

Permalink
mistral[patch]: Hide secrets (langchain-ai#6630)
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored and CarterMorris committed Nov 10, 2024
1 parent d3dfa92 commit 3193cc4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libs/langchain-mistralai/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,18 @@ export class ChatMistralAI<
this.addAllHooksToHttpClient();
}

get lc_secrets(): { [key: string]: string } | undefined {
return {
apiKey: "MISTRAL_API_KEY",
};
}

get lc_aliases(): { [key: string]: string } | undefined {
return {
apiKey: "mistral_api_key",
};
}

getLsParams(options: this["ParsedCallOptions"]): LangSmithParams {
const params = this.invocationParams(options);
return {
Expand Down

0 comments on commit 3193cc4

Please sign in to comment.