Feature: Add LM Studio provider integration - Added LM Studio provider to support OpenAI compatible API - Implemented chat and embeddings model loading - Updated config to include LM Studio API endpoint
This commit is contained in:
parent
41b258e4d8
commit
aa240009ab
4 changed files with 113 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ import { loadAnthropicChatModels } from './anthropic';
|
|||
import { loadGeminiChatModels, loadGeminiEmbeddingModels } from './gemini';
|
||||
import { loadTransformersEmbeddingsModels } from './transformers';
|
||||
import { loadDeepseekChatModels } from './deepseek';
|
||||
import { loadLMStudioChatModels, loadLMStudioEmbeddingsModels } from './lmstudio';
|
||||
|
||||
export interface ChatModel {
|
||||
displayName: string;
|
||||
|
|
@ -34,6 +35,7 @@ export const chatModelProviders: Record<
|
|||
anthropic: loadAnthropicChatModels,
|
||||
gemini: loadGeminiChatModels,
|
||||
deepseek: loadDeepseekChatModels,
|
||||
lmstudio: loadLMStudioChatModels,
|
||||
};
|
||||
|
||||
export const embeddingModelProviders: Record<
|
||||
|
|
@ -44,6 +46,7 @@ export const embeddingModelProviders: Record<
|
|||
ollama: loadOllamaEmbeddingModels,
|
||||
gemini: loadGeminiEmbeddingModels,
|
||||
transformers: loadTransformersEmbeddingsModels,
|
||||
lmstudio: loadLMStudioEmbeddingsModels,
|
||||
};
|
||||
|
||||
export const getAvailableChatModelProviders = async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue