-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Mistral Client #2892
Mistral Client #2892
Conversation
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
10493810 | Triggered | Generic Password | 39b7c1e | notebook/agentchat_pgvector_RetrieveChat.ipynb | View secret |
10493810 | Triggered | Generic Password | 39b7c1e | notebook/agentchat_pgvector_RetrieveChat.ipynb | View secret |
10493810 | Triggered | Generic Password | 39b7c1e | notebook/agentchat_pgvector_RetrieveChat.ipynb | View secret |
11616921 | Triggered | Generic High Entropy Secret | 39b7c1e | notebook/agentchat_agentops.ipynb | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to make a toy notebook or app in examples and a short blog post about it , to accompany the next release : this is cool ! & thanks for the contribution !
Hey @Hk669, yes, you make a good point - my intention is to do that and have users choose it in the same way as the GeminiClient, whereby it will install Mistral's API library if you specify it: So similar to what is shown here. If I've not done that correctly, can you let me know. |
I did the following changes:
I have two minor questions, other than that I am good! |
Brilliant, thanks so much for your help on that! I've just been testing and it's working with the sample AutoGen workflows I tried before. Let me check those two questions out now. Sorry, @yiranwu0, would you be able to link me to the two questions you had? I can't find them. |
This is a Mistral Client that provides a way to use the Mistral.AI API for an agent. It's available as 'MistralAIClient
(similar to
GeminiClient`).This client provides some benefits over attempting to use the Mistral.AI API through the standard config as it can cater for some of the nuances of the Mistral.AI API such as not allowing the
name
key on a message or failing if asystem
role appears after anassistant
role.This client supports text generation and function/tool calling. Additionally, costs align with the Mistral.AI API costs.
This is my first client class, hopefully I've set everything up correctly. I based changes on the Gemini Client class.
Related issue number
Relates to PR #2748.
I haven't added any documentation at this stage, will do once it has been reviewed.
Checks