Commit 3b9c7e1
committed
bug #1698 fix typo in model name (no 's') (tacman)
This PR was merged into the main branch.
Discussion
----------
fix typo in model name (no 's')
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| Docs? | no <!-- required for new features -->
| License | MIT
Typo in the model name, no "s".
The model page lists them as Pixtral Large and Pixtral 12B. The direct links confirm the API names:
```
pixtral-large-2411 → pixtral-large-latest
pixtral-12b-2409 → pixtral-12b-latest
```
Documentation URL: https://docs.mistral.ai/getting-started/models/models_overview/
```bash
$ MISTRAL_KEY=$(grep MISTRAL_API_KEY /home/tac/g/sites/ai-pipeline-demo/.env.local | cut -d= -f2)
for model in "pixtral-12b-2409" "pixtral-12b-latest" "pixstral-12b-latest"; do
result=$(curl -s -X POST https://api.mistral.ai/v1/chat/completions \
-H "Authorization: Bearer $MISTRAL_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"$model\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}],\"max_tokens\":3}")
echo "$model: $(echo $result | python3 -c 'import sys,json; d=json.load(sys.stdin); print(d.get("choices",[{}])[0].get("message",{}).get("content","") or d.get("error",{}).get("message","")[:60])' 2>/dev/null)"
done
pixtral-12b-2409: Hello!
pixtral-12b-latest: Hello!
pixstral-12b-latest:
```
```bash
curl -s -X POST https://api.mistral.ai/v1/chat/completions \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"pixstral-large-latest","messages":[{"role":"user","content":"hi"}],"max_tokens":5}'
```
That returns "Invalid model: pixstral-large-latest". The pixtral name works.
Commits
-------
793bc64 fix typo in model name (no 's')File tree
2 files changed
+4
-4
lines changed- src/platform/src/Bridge/Mistral
- Tests
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments