Merge pull request #4375 from vineye25/ncompass/qwen-models

Ncompass/model-updates
This commit is contained in:
Nate Sesti 2025-02-26 18:33:19 -08:00 • committed by GitHub
commit 65f47b893f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View file

@ -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,

View file

@ -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;

View file

@ -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: {