add URL trailing slash to some providers

This commit is contained in:
Nate 2025-07-17 22:43:21 -07:00
parent a66d55d4c8
commit 95fe63a0a3
7 changed files with 8 additions and 8 deletions

View file

@ -17,7 +17,7 @@ import OpenAI from "./OpenAI.js";
class Docker extends OpenAI implements ModelInstaller {
static providerName = "docker";
static defaultOptions: Partial<LLMOptions> = {
apiBase: "http://localhost:12434/engines/v1",
apiBase: "http://localhost:12434/engines/v1/",
model: "gemma3-4B-F4", // Default model
};

View file

@ -5,7 +5,7 @@ import OpenAI from "./OpenAI.js";
class Fireworks extends OpenAI {
static providerName = "fireworks";
static defaultOptions: Partial<LLMOptions> = {
apiBase: "https://api.fireworks.ai/inference/v1",
apiBase: "https://api.fireworks.ai/inference/v1/",
};
private static modelConversion: { [key: string]: string } = {

View file

@ -3,7 +3,7 @@ import { createOpenAISubclassTests } from "./test-utils/openai-test-utils.js";
createOpenAISubclassTests(Fireworks, {
providerName: "fireworks",
defaultApiBase: "https://api.fireworks.ai/inference/v1",
defaultApiBase: "https://api.fireworks.ai/inference/v1/",
modelConversions: {
"starcoder-7b": "accounts/fireworks/models/starcoder-7b",
},

View file

@ -5,7 +5,7 @@ import OpenAI from "./OpenAI";
class Kindo extends OpenAI {
static providerName = "kindo";
static defaultOptions: Partial<LLMOptions> = {
apiBase: "https://llm.kindo.ai/v1",
apiBase: "https://llm.kindo.ai/v1/",
requestOptions: {
headers: {
"kindo-token-transaction-type": "CONTINUE",

View file

@ -6,9 +6,9 @@ import OpenAI from "./OpenAI.js";
class NCompass extends OpenAI {
static providerName = "ncompass";
static defaultOptions: Partial<LLMOptions> = {
apiBase: "https://api.ncompass.tech/v1",
apiBase: "https://api.ncompass.tech/v1/",
};
static embeddingsApiEndpoint: "https://api.gcp.ncompass.tech/v1/embeddings";
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",

View file

@ -241,7 +241,7 @@ createOpenAISubclassTests(Groq, {
providerName: "groq",
defaultApiBase: "https://api.groq.com/openai/v1/",
modelConversions: {
"mistral-8x7b": "mistral-8x7b",
"mistral-8x7b": "mixtral-8x7b-32768",
"llama3-8b": "llama3-8b-8192",
"llama3-70b": "llama3-70b-8192",
},

View file

@ -6,7 +6,7 @@ import OpenAI from "./OpenAI";
class Venice extends OpenAI {
static providerName = "venice";
static defaultOptions: Partial<LLMOptions> = {
apiBase: "https://api.venice.ai/api/v1",
apiBase: "https://api.venice.ai/api/v1/",
};
protected _convertArgs(