fix code review

This commit is contained in:
gejifeng
2026-02-11 08:00:54 +00:00
committed by Peter Steinberger
parent 0472dd68f0
commit 3e7956b008

View File

@@ -63,6 +63,8 @@ const MOONSHOT_DEFAULT_COST = {
cacheWrite: 0,
};
const TOGETHER_BASE_URL = "https://api.together.xyz/v1";
const QWEN_PORTAL_BASE_URL = "https://portal.qwen.ai/v1";
const QWEN_PORTAL_OAUTH_PLACEHOLDER = "qwen-oauth";
const QWEN_PORTAL_DEFAULT_CONTEXT_WINDOW = 128000;
@@ -470,6 +472,14 @@ function buildMoonshotProvider(): ProviderConfig {
};
}
function buildTogetherProvider(): ProviderConfig {
return {
baseUrl: TOGETHER_BASE_URL,
api: "openai-completions",
models: [],
};
}
function buildQwenPortalProvider(): ProviderConfig {
return {
baseUrl: QWEN_PORTAL_BASE_URL,