(state: SidecarState)
| 123 | |
| 124 | /** Der `title` des Menuepunktes, je nach Lage. */ |
| 125 | export function llmMenuTitle(state: SidecarState): string { |
| 126 | if (state === 'disabled-by-policy') { |
| 127 | return `atlas: the local model is denied by the project's ${POLICY_PATH}; the switch has no effect`; |
| 128 | } |
| 129 | return state === 'off' |
| 130 | ? 'atlas: turn the local model on (nothing is probed while it is off)' |
| 131 | : 'atlas: turn the local model off (no request goes to the sidecar afterwards)'; |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Das Etikett des Menuepunktes. Es traegt seinen Zustand, weil ein Extra keinen |
nothing calls this directly
no outgoing calls
no test coverage detected