Skip to content

Commit

Permalink
Merge pull request #327 from jandiasnow-work/bugfix
Browse files Browse the repository at this point in the history
fix: fix model undefied
  • Loading branch information
Carrotzpc authored Apr 10, 2024
2 parents d8f4201 + 19fa5d0 commit aa5a653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ModelAppDetail/Body/ConfigModelService/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const ConfigModelService: React.FC<ConfigModelServiceProps> = props => {
onChange={v => {
forceUpdate();
const llm = llmList?.find(item => item.name === v);
const model = llm?.provider === 'worker' ? undefined : llm?.models?.[0];
const model = llm?.models?.[0];
form.setFieldsValue({
model,
});
Expand Down

0 comments on commit aa5a653

Please sign in to comment.