Get the Anthropic model to use. Checks user preferences first, then falls back to system configuration. Returns: The model name string, or empty string if not configured.
()
| 399 | |
| 400 | |
| 401 | def get_anthropic_model(): |
| 402 | """ |
| 403 | Get the Anthropic model to use. |
| 404 | |
| 405 | Checks user preferences first, then falls back to system configuration. |
| 406 | |
| 407 | Returns: |
| 408 | The model name string, or empty string if not configured. |
| 409 | """ |
| 410 | # Check user preference first |
| 411 | pref_model = _get_preference_value('anthropic_api_model') |
| 412 | if pref_model: |
| 413 | return pref_model |
| 414 | |
| 415 | # Fall back to system configuration |
| 416 | return config.ANTHROPIC_API_MODEL or '' |
| 417 | |
| 418 | |
| 419 | def get_openai_api_url(): |
no test coverage detected