fix: restore current-main gate (#59815)

This commit is contained in:
Peter Steinberger
2026-04-04 08:36:33 +01:00
parent 926c107fe5
commit 36987831ce
2 changed files with 3 additions and 1 deletions

View File

@@ -190,7 +190,7 @@ export function applyAnthropicConfigDefaults(params: {
);
if (primary) {
const parsedPrimary = parseProviderModelRef(primary, "anthropic");
if (isAnthropicCacheRetentionTarget(parsedPrimary)) {
if (parsedPrimary && isAnthropicCacheRetentionTarget(parsedPrimary)) {
const key = `${parsedPrimary.provider}/${parsedPrimary.model}`;
const entry = nextModels[key];
const current = entry ?? {};

View File

@@ -158,6 +158,8 @@ export type TelegramAccountConfig = {
* - "progress": alias that maps to "partial" on Telegram
*/
streaming?: TelegramStreamingMode;
/** Chunking config for Telegram stream previews in `streaming: "block"`. */
draftChunk?: BlockStreamingChunkConfig;
/** Disable block streaming for this account. */
blockStreaming?: boolean;
/** Draft block-stream chunking thresholds for Telegram preview edits. */