fix OpenRouter add bug and the way to add OpenRouter model (#2364)

### What problem does this PR solve?

#2359  fix OpenRouter add bug and the way to add OpenRouter model

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: Zhedong Cen <cenzhedong2@126.com>
This commit is contained in:
黄腾 2024-09-11 15:10:25 +08:00 committed by GitHub
parent 22c5affacc
commit d6e6c530d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1029 deletions

File diff suppressed because it is too large Load Diff

View File

@ -17,4 +17,13 @@ export const UserSettingIconMap = {
export * from '@/constants/setting';
export const LocalLlmFactories = ['Ollama', 'Xinference','LocalAI','LM-Studio',"OpenAI-API-Compatible",'TogetherAI','Replicate'];
export const LocalLlmFactories = [
'Ollama',
'Xinference',
'LocalAI',
'LM-Studio',
'OpenAI-API-Compatible',
'TogetherAI',
'Replicate',
'OpenRouter',
];