Skip to content

Commit ab2af79

Browse files
committed
🤖 feat: disable auto truncation by default for OpenAI models
Change the default value of disableAutoTruncation from false to true, so the dev-only 'No Trunc' checkbox is checked by default.
1 parent cac3cb0 commit ab2af79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/browser/contexts/ProviderOptionsContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function ProviderOptionsProvider({ children }: { children: React.ReactNod
2121
const [openaiOptions, setOpenAIOptions] = usePersistedState<MuxProviderOptions["openai"]>(
2222
"provider_options_openai",
2323
{
24-
disableAutoTruncation: false,
24+
disableAutoTruncation: true,
2525
}
2626
);
2727

src/browser/utils/messages/sendOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function getProviderOptions(): MuxProviderOptions {
2626
{ use1MContext: false }
2727
);
2828
const openai = readPersistedState<MuxProviderOptions["openai"]>("provider_options_openai", {
29-
disableAutoTruncation: false,
29+
disableAutoTruncation: true,
3030
});
3131
const google = readPersistedState<MuxProviderOptions["google"]>("provider_options_google", {});
3232

0 commit comments

Comments
 (0)