Get current global settings.
()
| 82 | |
| 83 | @router.get("", response_model=SettingsResponse) |
| 84 | async def get_settings(): |
| 85 | """Get current global settings.""" |
| 86 | all_settings = get_all_settings() |
| 87 | |
| 88 | return SettingsResponse( |
| 89 | yolo_mode=_parse_yolo_mode(all_settings.get("yolo_mode")), |
| 90 | model=all_settings.get("model", DEFAULT_MODEL), |
| 91 | glm_mode=_is_glm_mode(), |
| 92 | ollama_mode=_is_ollama_mode(), |
| 93 | testing_agent_ratio=_parse_int(all_settings.get("testing_agent_ratio"), 1), |
| 94 | playwright_headless=_parse_bool(all_settings.get("playwright_headless"), default=True), |
| 95 | batch_size=_parse_int(all_settings.get("batch_size"), 3), |
| 96 | ) |
| 97 | |
| 98 | |
| 99 | @router.patch("", response_model=SettingsResponse) |
nothing calls this directly
no test coverage detected