diff --git a/core/indexing/allEmbeddingsProviders.ts b/core/indexing/allEmbeddingsProviders.ts index 9efa37f2d..3986fa2c0 100644 --- a/core/indexing/allEmbeddingsProviders.ts +++ b/core/indexing/allEmbeddingsProviders.ts @@ -8,6 +8,7 @@ import Gemini from "../llm/llms/Gemini.js"; import HuggingFaceTEIEmbeddingsProvider from "../llm/llms/HuggingFaceTEI.js"; import LMStudio from "../llm/llms/LMStudio.js"; import Mistral from "../llm/llms/Mistral.js"; +import NCompass from "../llm/llms/NCompass.js"; import Nebius from "../llm/llms/Nebius.js"; import Nvidia from "../llm/llms/Nvidia.js"; import Ollama from "../llm/llms/Ollama.js"; @@ -39,6 +40,7 @@ export const allEmbeddingsProviders: Record< gemini: Gemini, "continue-proxy": ContinueProxy, deepinfra: DeepInfra, + ncompass: NCompass, nvidia: Nvidia, voyage: Voyage, mistral: Mistral, diff --git a/core/llm/llms/NCompass.ts b/core/llm/llms/NCompass.ts index 56fad94c5..744366b41 100644 --- a/core/llm/llms/NCompass.ts +++ b/core/llm/llms/NCompass.ts @@ -1,5 +1,5 @@ -import { ChatMessage, CompletionOptions, LLMOptions } from "../../index.js"; import { ChatCompletionCreateParams } from "openai/resources/index"; +import { ChatMessage, CompletionOptions, LLMOptions } from "../../index.js"; import OpenAI from "./OpenAI.js"; @@ -11,10 +11,8 @@ class NCompass extends OpenAI { static embeddingsApiEndpoint: "https://api.gcp.ncompass.tech/v1/embeddings" private static modelConversion: { [key: string]: string } = { + "qwen2.5-coder-7b": "Qwen/Qwen2.5-Coder-7B-Instruct", "qwen2.5-coder-32b": "Qwen/Qwen2.5-Coder-32B-Instruct", - "qwen2.5-72b": "Qwen/Qwen2.5-72B-Instruct", - "llama3.3-70b": "meta-llama/Llama-3.3-70B-Instruct", - "llama3.1-8b": "meta-llama/Llama-3.1-8B-Instruct", }; protected _convertModelName(model: string): string { return NCompass.modelConversion[model] ?? model; diff --git a/gui/src/pages/AddNewModel/configs/models.ts b/gui/src/pages/AddNewModel/configs/models.ts index 7f563f845..73aaa428c 100644 --- a/gui/src/pages/AddNewModel/configs/models.ts +++ b/gui/src/pages/AddNewModel/configs/models.ts @@ -499,7 +499,7 @@ export const models: { [key: string]: ModelPackage } = { contextLength: 8192, }, icon: "meta.png", - providerOptions: ["groq", "scaleway", "nebius", "ncompass"], + providerOptions: ["groq", "scaleway", "nebius"], isOpenSource: false, }, llama3370bChat: { @@ -512,7 +512,7 @@ export const models: { [key: string]: ModelPackage } = { contextLength: 65536, }, icon: "meta.png", - providerOptions: ["ncompass"], + providerOptions: [], isOpenSource: false, }, llama3170bChat: { @@ -1374,7 +1374,7 @@ export const models: { [key: string]: ModelPackage } = { }, }, ], - providerOptions: ["nebius"], + providerOptions: ["nebius", "ncompass"], isOpenSource: true, }, Qwen25Coder32b: {