Skip to content

Commit

Permalink
mistral[patch]: Hide secrets (#6630)
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored Aug 26, 2024
1 parent c3426ea commit 46f5cb8
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 @@ -800,6 +800,18 @@ export class ChatMistralAI<
this.streamUsage = fields?.streamUsage ?? this.streamUsage;
}

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 46f5cb8

Please sign in to comment.