@@ -472,19 +472,6 @@ export const OpenAICompatible = ({ apiConfiguration, setApiConfigurationField }:
472472 < VSCodeTextField
473473 value = { apiConfiguration ?. openAiCustomModelInfo ?. cacheReadsPrice ?. toString ( ) ?? "0" }
474474 type = "text"
475- // style={{
476- // borderColor: (() => {
477- // const value = apiConfiguration?.openAiCustomModelInfo?.cacheReadsPrice
478- //
479- // if (!value && value !== 0) {
480- // return "var(--vscode-input-border)"
481- // }
482- //
483- // return value >= 0
484- // ? "var(--vscode-charts-green)"
485- // : "var(--vscode-errorForeground)"
486- // })(),
487- // }}
488475 className = { cn (
489476 "w-full border" , // Added base 'border' class
490477 ( ( ) => {
@@ -504,17 +491,14 @@ export const OpenAICompatible = ({ apiConfiguration, setApiConfigurationField }:
504491 cacheReadsPrice : isNaN ( parsed ) ? 0 : parsed ,
505492 }
506493 } ) }
507- placeholder = { t ( "settings:placeholders.numbers.inputPrice" ) }
508- /* className="w-full" */
509- >
494+ placeholder = { t ( "settings:placeholders.numbers.inputPrice" ) } >
510495 < div className = "flex items-center gap-1" >
511496 < span className = "font-medium" >
512497 { t ( "settings:providers.customModel.pricing.cacheReads.label" ) }
513498 </ span >
514499 < i
515500 className = "codicon codicon-info text-vscode-descriptionForeground text-xs"
516501 title = { t ( "settings:providers.customModel.pricing.cacheReads.description" ) }
517- // style={{ fontSize: "12px" }}
518502 />
519503 </ div >
520504 </ VSCodeTextField >
@@ -523,19 +507,6 @@ export const OpenAICompatible = ({ apiConfiguration, setApiConfigurationField }:
523507 < VSCodeTextField
524508 value = { apiConfiguration ?. openAiCustomModelInfo ?. cacheWritesPrice ?. toString ( ) ?? "0" }
525509 type = "text"
526- // style={{
527- // borderColor: (() => {
528- // const value = apiConfiguration?.openAiCustomModelInfo?.cacheWritesPrice
529- //
530- // if (!value && value !== 0) {
531- // return "var(--vscode-input-border)"
532- // }
533- //
534- // return value >= 0
535- // ? "var(--vscode-charts-green)"
536- // : "var(--vscode-errorForeground)"
537- // })(),
538- // }}
539510 onChange = { handleInputChange ( "openAiCustomModelInfo" , ( e ) => {
540511 const value = ( e . target as HTMLInputElement ) . value
541512 const parsed = parseFloat ( value )
@@ -547,7 +518,7 @@ export const OpenAICompatible = ({ apiConfiguration, setApiConfigurationField }:
547518 } ) }
548519 placeholder = { t ( "settings:placeholders.numbers.cacheWritePrice" ) }
549520 className = { cn (
550- "w-full border" , // Added base 'border' class
521+ "w-full border" ,
551522 ( ( ) => {
552523 const value = apiConfiguration ?. openAiCustomModelInfo ?. cacheWritesPrice
553524 if ( value === undefined || value === null ) return "border-vscode-input-border"
@@ -563,7 +534,6 @@ export const OpenAICompatible = ({ apiConfiguration, setApiConfigurationField }:
563534 < i
564535 className = "codicon codicon-info text-vscode-descriptionForeground text-xs"
565536 title = { t ( "settings:providers.customModel.pricing.cacheWrites.description" ) }
566- // style={{ fontSize: "12px" }}
567537 />
568538 </ div >
569539 </ VSCodeTextField >
0 commit comments