api.services.ai.model_test¶
“Tester” an AI model from the settings form, before relying on it: one
tiny real request with the model’s own settings (a photo if it reads images,
a JSON schema if it returns structured JSON), plus what the provider catalog
says about the model id. Recorded as feature model_test.
Attributes¶
Functions¶
|
The catalog entry for the model id, or close ids when it is unknown. |
|
Module Contents¶
- api.services.ai.model_test.SCHEMA¶
- api.services.ai.model_test.COLOUR_WORDS = ('rouge', 'red')¶
- api.services.ai.model_test.catalog_info(profile: api.services.ai.settings.ModelProfile) dict[str, Any]¶
The catalog entry for the model id, or close ids when it is unknown.
- api.services.ai.model_test.test_model(profile: api.services.ai.settings.ModelProfile, ai: api.services.ai.service.AIService | None = None) dict[str, Any]¶