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

Update agents.md : variable typo fix + secret disclosure warning #164

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/capabilities/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const apiKey = process.env.MISTRAL_API_KEY;
const client = new Mistral({apiKey: apiKey});

const chatResponse = await client.agents.complete({
agent_id: "ag:3996db2b:20240805:french-agent:a8997aab",
agentId: "ag:3996db2b:20240805:french-agent:a8997aab",
messages: [{role: 'user', content: 'What is the best French cheese?'}],
});

Expand All @@ -136,6 +136,10 @@ curl --location "https://api.mistral.ai/v1/agents/completions" \

</Tabs>

:::note[ ]
- Typescript : Please note that storing secrets such as the API key on the client side (`process.env.MISTRAL_API_KEY`) is dangerous and may lead to secret disclosure
:::

<!--
### List/delete agents

Expand Down