Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): pick the model and its effort from one control #28057

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/28057/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 22 changed files with 4 additions and 18 deletions (loading 20).

x
0 of 22 viewed, 22 left
2 additions and 0 deletionsapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -92,6 +92,7 @@
import {
isInsideCollapsedComposerControls,
isInsideRestingComposerControlScope,
+ markOpenToEffort,
markOpenToPermissions,
} from "./composerEventScope";
import {
@@ -2874,6 +2875,7 @@
if (!trigger) return;
trigger.focus({ preventScroll: true });
if (command === "composer.mode") markOpenToPermissions(trigger);
+ if (command === "composer.effort") markOpenToEffort(trigger);
trigger.click();
compactContext: compactThreadContextStable,
2 additions and 18 deletionsapps/web/src/components/chat/CompactComposerControlsMenu.tsxModified
View file
@@ -1,5 +1,5 @@
import { ProviderInteractionMode, RuntimeMode } from "@t3tools/contracts";
-import { memo, type ReactNode, useRef } from "react";
+import { memo, useRef } from "react";
import { EllipsisIcon } from "lucide-react";
import {
Menu,
@@ -19,7 +19,6 @@
runtimeMode: RuntimeMode;