Skip to content

Conversation

welcoMattic
Copy link
Member

Q A
Bug fix? no
New feature? yes
Docs? no
Issues Fix #...
License MIT

Following up #531

This PR introduce ModelNotFoundException, useful for local model runners that return an error due to a non-existing model locally (typo in name or never downloaded model for instance).

It must be used by Ollama and LmStudio bridges. PRs are welcome.

@carsonbot carsonbot added Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review labels Sep 17, 2025
@OskarStark OskarStark changed the title [Platform] Add ModelNotFoundException [Platform][Docker Model Runner] Add ModelNotFoundException Sep 17, 2025
@OskarStark OskarStark changed the title [Platform][Docker Model Runner] Add ModelNotFoundException [Platform][DockerModelRunner] Add ModelNotFoundException Sep 17, 2025
@OskarStark
Copy link
Contributor

Thanks Mathieu for working on this feature, this is much appreciated.

@OskarStark OskarStark merged commit c9fb496 into symfony:main Sep 17, 2025
18 checks passed
@welcoMattic welcoMattic deleted the dmr-model-not-found branch September 17, 2025 15:27
OskarStark added a commit that referenced this pull request Sep 17, 2025
…Exception` (OskarStark)

This PR was merged into the main branch.

Discussion
----------

[Platform][DockerModelRunner] Add tests for `ModelNotFoundException`

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Docs?         | no
| Issues        | Follows #628
| License       | MIT

Tests verify that ModelNotFoundException is properly thrown when:
- 404 response contains "model not found" message (case-insensitive)
- Exception is not thrown for 404 responses without the specific message

cc `@welcoMattic`

Commits
-------

f059335 Add tests for ModelNotFoundException in DockerModelRunner result converters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature Platform Issues & PRs about the AI Platform component Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants