change url of local llm deploy guide (#2659)

### What problem does this PR solve?


### Type of change

- [x] Other (please describe): I made a mistake with an URL and now I
need to change it
This commit is contained in:
JobSmithManipulation 2024-09-29 15:39:05 +08:00 committed by GitHub
parent d3b37b0b70
commit 3f16377412
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,8 @@ type FieldType = IAddLlmRequestBody & { vision: boolean };
const { Option } = Select;
const llmFactoryToUrlMap = {
Ollama: 'https://huggingface.co/docs/text-embeddings-inference/quick_tour',
Ollama:
'https://github.com/infiniflow/ragflow/blob/main/docs/guides/deploy_local_llm.mdx',
Xinference: 'https://inference.readthedocs.io/en/latest/user_guide',
LocalAI: 'https://localai.io/docs/getting-started/models/',
'LM-Studio': 'https://lmstudio.ai/docs/basics',
@ -51,7 +52,7 @@ const OllamaModal = ({
};
const url =
llmFactoryToUrlMap[llmFactory as LlmFactory] ||
'https://huggingface.co/docs/text-embeddings-inference/quick_tour';
'https://github.com/infiniflow/ragflow/blob/main/docs/guides/deploy_local_llm.mdx';
return (
<Modal
title={t('addLlmTitle', { name: llmFactory })}
@ -92,6 +93,8 @@ const OllamaModal = ({
<Option value="embedding">embedding</Option>
<Option value="rerank">rerank</Option>
<Option value="image2text">image2text</Option>
<Option value="audio2text">audio2text</Option>
<Option value="text2andio">text2andio</Option>
</>
)}
</Select>