fix: Add model by ollama in model provider page, user can't choose the model in chat window. #2479 (#2529)

### What problem does this PR solve?

fix: Add model by ollama in model provider page, user can't choose the
model in chat window. #2479

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-09-23 10:53:18 +08:00
committed by GitHub
parent d8a43416f5
commit f6ceb43e36
2 changed files with 9 additions and 1 deletions

View File

@ -71,7 +71,7 @@ export const useSelectLlmOptionsByModelType = () => {
)
.map((x) => ({
label: x.llm_name,
value: x.llm_name,
value: `${x.llm_name}@${x.fid}`,
disabled: !x.available,
})),
};