Skip to content

Commit

Permalink
Merge pull request #164 from LucBERTON/patch-1
Browse files Browse the repository at this point in the history
Update agents.md : variable typo fix + secret disclosure warning
  • Loading branch information
fracapuano authored Feb 21, 2025
2 parents 3954386 + e5ca6c6 commit 285456f
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 285456f

Please sign in to comment.