From 944b8246e5c6becb816c9a5e859c3374201ed44e Mon Sep 17 00:00:00 2001 From: Richard R Date: Wed, 20 May 2026 15:42:45 -0600 Subject: [PATCH] refactor(context): expose provider config type and instruction flags in TTS value Update TTS context to include configProviderType, supportsInstructions, and ttsInstructions in the provided value, improving downstream access to provider capabilities and instruction handling. --- src/contexts/TTSContext.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/contexts/TTSContext.tsx b/src/contexts/TTSContext.tsx index 1972448..404a014 100644 --- a/src/contexts/TTSContext.tsx +++ b/src/contexts/TTSContext.tsx @@ -2264,6 +2264,9 @@ export function TTSProvider({ children }: { children: ReactNode }): ReactElement effectiveNativeSpeed, configProviderRef, ttsModel, + configProviderType, + providerModelPolicy.supportsInstructions, + ttsInstructions, isEPUB, currDocPage, currDocPageNumber,