Skip to content

Conversation

@cheshire137
Copy link
Member

@cheshire137 cheshire137 commented Jan 5, 2026

This updates samples to use mistral-small-2503 instead of mistral-small, because I got an error about mistral-small being an unknown model:

screenshot of a term with error Unknown model: mistral-ai/Mistral-small

I confirmed I was able to run that evaluation.py sample successfully after this change.

These files were created when I ran `python ./samples/python/azure_ai_evaluation/evaluation.py`.
To address this error when I tried running a Python sample:

```
@cheshire137 ➜ /workspaces/codespaces-models (main) $ python ./samples/python/azure_ai_evaluation/evaluation.py
Traceback (most recent call last):
  File "/workspaces/codespaces-models/./samples/python/azure_ai_evaluation/evaluation.py", line 143, in <module>
    generate_eval_data()
  File "/workspaces/codespaces-models/./samples/python/azure_ai_evaluation/evaluation.py", line 52, in generate_eval_data
    response = client.complete(
               ^^^^^^^^^^^^^^^^
  File "/usr/local/python/3.11.9/lib/python3.11/site-packages/azure/ai/inference/_patch.py", line 737, in complete
    map_error(status_code=response.status_code, response=response, error_map=error_map)
  File "/usr/local/python/3.11.9/lib/python3.11/site-packages/azure/core/exceptions.py", line 163, in map_error
    raise error
azure.core.exceptions.ResourceNotFoundError: (unknown_model) Unknown model: mistral-ai/Mistral-small
Code: unknown_model
Message: Unknown model: mistral-ai/Mistral-small
```
Copilot AI review requested due to automatic review settings January 5, 2026 21:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates all sample code and notebooks to use the mistral-small-2503 model instead of the deprecated Mistral-small model, fixing errors where the old model name was no longer recognized by the GitHub Models service.

Key Changes

  • Replaced all references to "Mistral-small" or "mistral-small" with "mistral-small-2503" across Python and JavaScript samples
  • Cleaned up trailing whitespace in multiple files
  • Added evaluation output files to .gitignore

Reviewed changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated no comments.

Show a summary per file
File Description
samples/python/mistralai/streaming.py Updated model name to mistral-small-2503
samples/python/mistralai/multi_turn.py Updated model name to mistral-small-2503
samples/python/mistralai/basic.py Updated model name and removed trailing whitespace
samples/python/mistralai/README.md Updated documentation to reference mistral-small-2503
samples/python/azure_ai_inference/tools.py Updated model name in comments and removed trailing whitespace
samples/python/azure_ai_inference/streaming.py Updated model name in comments
samples/python/azure_ai_inference/multi_turn.py Updated model name in comments and removed trailing whitespace
samples/python/azure_ai_inference/basic.py Updated model name in comments and removed trailing whitespace
samples/python/azure_ai_evaluation/evaluation.py Updated target model name and removed trailing whitespace
samples/js/mistralai/tools.js Updated model name and removed trailing whitespace
samples/js/mistralai/streaming.js Updated model name and removed trailing whitespace
samples/js/mistralai/multi_turn.js Updated model name and removed trailing whitespace
samples/js/mistralai/basic.js Updated model name to mistral-small-2503
samples/js/azure_ai_inference/tools.js Updated model name in comments and removed trailing whitespace
samples/js/azure_ai_inference/streaming.js Updated model name in comments
cookbooks/python/mistralai/prefix_use_cases.ipynb Updated all model references to mistral-small-2503
cookbooks/python/mistralai/function_calling.ipynb Updated all model references to mistral-small-2503
cookbooks/python/mistralai/evaluation.ipynb Updated all model references to mistral-small-2503
.gitignore Added evaluation output files to ignore list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cheshire137 cheshire137 merged commit 6411916 into main Jan 5, 2026
8 checks passed
@cheshire137 cheshire137 deleted the replace-mistral-small branch January 5, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants