Skip to content

Commit

Permalink
feat(access): llm 抽象
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuSilence committed Dec 30, 2023
1 parent f7c8ddc commit 7cb5a6d
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions app/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -876,17 +876,6 @@ export function Settings() {
/>
</ListItem>
</List>

<List>
<ModelConfigList
modelConfig={config.modelConfig}
updateConfig={(updater) => {
const modelConfig = { ...config.modelConfig };
updater(modelConfig);
config.update((config) => (config.modelConfig = modelConfig));
}}
/>
</List>
<List id={SlotID.CustomModel}>
{showAccessCode && (
<ListItem
Expand Down Expand Up @@ -1157,6 +1146,16 @@ export function Settings() {
></input>
</ListItem>
</List>
<List>
<ModelConfigList
modelConfig={config.modelConfig}
updateConfig={(updater) => {
const modelConfig = { ...config.modelConfig };
updater(modelConfig);
config.update((config) => (config.modelConfig = modelConfig));
}}
/>
</List>
{showImage ? (
<List>
<ImageModelConfigList
Expand Down

0 comments on commit 7cb5a6d

Please sign in to comment.