(config)
| 2365 | |
| 2366 | |
| 2367 | def _selection_modes_payload(config) -> dict[str, dict[str, float]]: |
| 2368 | return { |
| 2369 | mode.value: { |
| 2370 | "editorial": mode_config.selection.editorial, |
| 2371 | "cost": mode_config.selection.cost, |
| 2372 | "latency": mode_config.selection.latency, |
| 2373 | "reliability": mode_config.selection.reliability, |
| 2374 | "feedback": mode_config.selection.feedback, |
| 2375 | "cache_affinity": mode_config.selection.cache_affinity, |
| 2376 | "byok": mode_config.selection.byok, |
| 2377 | "free_bias": mode_config.selection.free_bias, |
| 2378 | "local_bias": mode_config.selection.local_bias, |
| 2379 | "reasoning_bias": mode_config.selection.reasoning_bias, |
| 2380 | "quality_alignment": mode_config.selection.quality_alignment, |
| 2381 | "continuity": mode_config.selection.continuity, |
| 2382 | } |
| 2383 | for mode, mode_config in config.modes.items() |
| 2384 | } |
| 2385 | |
| 2386 | |
| 2387 | def _selection_weights_payload(config, mode_value: str) -> dict[str, float]: |
no outgoing calls
no test coverage detected