MCPcopy Create free account
hub / github.com/027xiguapi/code-box / SetAiType

Function SetAiType

component/items/setAiType.tsx:8–30  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

6import { i18n } from "~tools"
7
8export default function SetAiType(props) {
9 const [aiType, setAiType] = useStorage("app-aiType", (v) =>
10 v === undefined ? "chatgpt" : v
11 )
12
13 return (
14 <div className="item">
15 <span>
16 <StarTwoTone twoToneColor="#eb2f96" style={{ marginRight: "5px" }} />
17 选择AI
18 </span>
19 <select
20 name="custom-aiType"
21 id="custom-aiType"
22 value={aiType}
23 onChange={(e) => setAiType(e.target.value)}>
24 <option value="deepseek">deepseek</option>
25 <option value="chatgpt">chatGPT</option>
26 <option value="kimi">kimi</option>
27 </select>
28 </div>
29 )
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected