mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 17:01:53 +03:00
fix code review
This commit is contained in:
committed by
Peter Steinberger
parent
0472dd68f0
commit
3e7956b008
@@ -63,6 +63,8 @@ const MOONSHOT_DEFAULT_COST = {
|
|||||||
cacheWrite: 0,
|
cacheWrite: 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const TOGETHER_BASE_URL = "https://api.together.xyz/v1";
|
||||||
|
|
||||||
const QWEN_PORTAL_BASE_URL = "https://portal.qwen.ai/v1";
|
const QWEN_PORTAL_BASE_URL = "https://portal.qwen.ai/v1";
|
||||||
const QWEN_PORTAL_OAUTH_PLACEHOLDER = "qwen-oauth";
|
const QWEN_PORTAL_OAUTH_PLACEHOLDER = "qwen-oauth";
|
||||||
const QWEN_PORTAL_DEFAULT_CONTEXT_WINDOW = 128000;
|
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 {
|
function buildQwenPortalProvider(): ProviderConfig {
|
||||||
return {
|
return {
|
||||||
baseUrl: QWEN_PORTAL_BASE_URL,
|
baseUrl: QWEN_PORTAL_BASE_URL,
|
||||||
|
|||||||
Reference in New Issue
Block a user