mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
Add system prompt to Mistral message creation and update API key link text
This commit is contained in:
parent
07fa6cc940
commit
9724a8024d
2 changed files with 10 additions and 12 deletions
|
|
@ -51,7 +51,7 @@ export class MistralHandler implements ApiHandler {
|
|||
async *createMessage(systemPrompt: string, messages: Anthropic.Messages.MessageParam[]): ApiStream {
|
||||
const response = await this.client.chat.stream({
|
||||
model: this.options.apiModelId || mistralDefaultModelId,
|
||||
messages: convertToMistralMessages(messages),
|
||||
messages: [{ role: "system", content: systemPrompt }, ...convertToMistralMessages(messages)],
|
||||
maxTokens: this.options.includeMaxTokens ? this.getModel().info.maxTokens : undefined,
|
||||
temperature: this.options.modelTemperature ?? MISTRAL_DEFAULT_TEMPERATURE,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -321,17 +321,15 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage, fromWelcomeView }: A
|
|||
color: "var(--vscode-descriptionForeground)",
|
||||
}}>
|
||||
This key is stored locally and only used to make API requests from this extension.
|
||||
{!apiConfiguration?.mistralApiKey && (
|
||||
<VSCodeLink
|
||||
href="https://console.mistral.ai/"
|
||||
style={{
|
||||
display: "inline",
|
||||
fontSize: "inherit",
|
||||
}}>
|
||||
You can get a La Plateforme (api.mistral.ai) / Codestral (codestral.mistral.ai) API key
|
||||
by signing up here.
|
||||
</VSCodeLink>
|
||||
)}
|
||||
<VSCodeLink
|
||||
href="https://console.mistral.ai/"
|
||||
style={{
|
||||
display: "inline",
|
||||
fontSize: "inherit",
|
||||
}}>
|
||||
You can get a La Plateforme (api.mistral.ai) or Codestral (codestral.mistral.ai) API key by
|
||||
signing up here.
|
||||
</VSCodeLink>
|
||||
</p>
|
||||
|
||||
{(apiConfiguration?.apiModelId?.startsWith("codestral-") ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue