File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
browser/components/ChatInput Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ import {
5757
5858import type { ThinkingLevel } from "@/common/types/thinking" ;
5959import type { MuxFrontendMetadata } from "@/common/types/message" ;
60+ import { MODEL_ABBREVIATION_EXAMPLES } from "@/common/constants/knownModels" ;
6061import { useTelemetry } from "@/browser/hooks/useTelemetry" ;
6162import { getTokenCountPromise } from "@/browser/utils/tokenizer/rendererClient" ;
6263import { CreationCenterContent } from "./CreationCenterContent" ;
@@ -933,8 +934,11 @@ export const ChatInput: React.FC<ChatInputProps> = (props) => {
933934 < br />
934935 < br />
935936 < strong > Abbreviations:</ strong >
936- < br /> • < code > /model opus</ code > - Claude Opus 4.1
937- < br /> • < code > /model sonnet</ code > - Claude Sonnet 4.5
937+ { MODEL_ABBREVIATION_EXAMPLES . map ( ( ex ) => (
938+ < React . Fragment key = { ex . abbrev } >
939+ < br /> • < code > /model { ex . abbrev } </ code > - { ex . displayName }
940+ </ React . Fragment >
941+ ) ) }
938942 < br />
939943 < br />
940944 < strong > Full format:</ strong >
Original file line number Diff line number Diff line change @@ -159,3 +159,9 @@ export const KNOWN_MODEL_OPTIONS = Object.values(KNOWN_MODELS).map((model) => ({
159159 label : formatModelDisplayName ( model . providerModelId ) ,
160160 value : model . id ,
161161} ) ) ;
162+
163+ /** Tooltip-friendly abbreviation examples: show representative shortcuts */
164+ export const MODEL_ABBREVIATION_EXAMPLES = ( [ "opus" , "sonnet" ] as const ) . map ( ( abbrev ) => ( {
165+ abbrev,
166+ displayName : formatModelDisplayName ( MODEL_ABBREVIATIONS [ abbrev ] . split ( ":" ) [ 1 ] ) ,
167+ } ) ) ;
You can’t perform that action at this time.
0 commit comments