add support for LocalAI (#1608)

### What problem does this PR solve?

#762 

### Type of change
- [x] New Feature (non-breaking change which adds functionality)

---------

Co-authored-by: Zhedong Cen <cenzhedong2@126.com>
This commit is contained in:
黄腾
2024-07-19 15:50:28 +08:00
committed by GitHub
parent 915354bec9
commit 3fcdba1683
9 changed files with 166 additions and 6 deletions

View File

@ -17,4 +17,4 @@ export const UserSettingIconMap = {
export * from '@/constants/setting';
export const LocalLlmFactories = ['Ollama', 'Xinference'];
export const LocalLlmFactories = ['Ollama', 'Xinference','LocalAI'];

View File

@ -75,6 +75,7 @@ const OllamaModal = ({
<Option value="chat">chat</Option>
<Option value="embedding">embedding</Option>
<Option value="rerank">rerank</Option>
<Option value="image2text">image2text</Option>
</Select>
</Form.Item>
<Form.Item<FieldType>