Get the Docker Model Runner model to use. Checks user preferences first, then falls back to system configuration. Returns: The model name string, or empty string if not configured.
()
| 487 | |
| 488 | |
| 489 | def get_docker_model(): |
| 490 | """ |
| 491 | Get the Docker Model Runner model to use. |
| 492 | |
| 493 | Checks user preferences first, then falls back to system configuration. |
| 494 | |
| 495 | Returns: |
| 496 | The model name string, or empty string if not configured. |
| 497 | """ |
| 498 | # Check user preference first |
| 499 | pref_model = _get_preference_value('docker_api_model') |
| 500 | if pref_model: |
| 501 | return pref_model |
| 502 | |
| 503 | # Fall back to system configuration |
| 504 | return config.DOCKER_API_MODEL or '' |
| 505 | |
| 506 | |
| 507 | def get_default_provider(): |
no test coverage detected