The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 03:37 UTC
| 1 | import { CLOUD_SPEECH_PROVIDER_NAMES, type CloudSpeechProvider } from "@t3tools/contracts"; |
| 2 | import { mFallback, msg } from "gt-i18n"; |
| 3 | import type { MFunctionType } from "gt-i18n/types"; |
| 4 | |
| 5 | /** @public */ |
| 6 | export function cloudSpeechDisclosure( |
| 7 | provider: CloudSpeechProvider, |
| 8 | environment: string, |
| 9 | resolve: MFunctionType = mFallback, |
| 10 | ) { |
| 11 | return provider === "openrouter" |
| 12 | ? resolve( |
| 13 | msg( |
| 14 | "After you stop, {environment} sends the recording to OpenRouter. OpenRouter chooses who runs your model. T3 requests zero data retention; your OpenRouter account may allow safety retention.", |
| 15 | { environment }, |
| 16 | ), |
| 17 | ) |
| 18 | : resolve( |
| 19 | msg( |
| 20 | "After you stop, {environment} sends your recording and vocabulary hints, including project names, to {provider}.", |
| 21 | { environment, provider: CLOUD_SPEECH_PROVIDER_NAMES[provider] }, |
| 22 | ), |
| 23 | ); |
| 24 | } |