MCPcopy Index your code
hub / github.com/sqlchat/sqlchat / modelRadio

Function modelRadio

src/components/OpenAIApiConfigView.tsx:81–95  ·  view source on GitHub ↗
(model: any)

Source from the content-addressed store, hash-verified

79 };
80
81 const modelRadio = (model: any) => {
82 return (
83 <div key={model.id} className="flex items-center">
84 <Radio
85 value={model.id}
86 disabled={model.disabled}
87 checked={openAIApiConfig.model === model.id}
88 onChange={(value) => handleSetOpenAIApiConfig({ model: value })}
89 />
90 <label htmlFor={model.id} className="ml-3 block text-sm font-medium leading-6 text-gray-900">
91 {model.title} {hasFeature("quota") ? `(${t("setting.openai-api-configuration.quota-per-ask", { count: model.cost })})` : ""}
92 </label>
93 </div>
94 );
95 };
96
97 return (
98 <>

Callers 1

OpenAIApiConfigViewFunction · 0.85

Calls 2

hasFeatureFunction · 0.90
handleSetOpenAIApiConfigFunction · 0.85

Tested by

no test coverage detected