(props)
| 6 | import { i18n } from "~tools" |
| 7 | |
| 8 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected