mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 17:01:45 +00:00
Summary: - Merged feat(tencent): add Tencent Hy3 provider (TokenHub and TokenPlan) after ClawSweeper review. Automerge notes: - Ran the ClawSweeper repair loop before final review. - Included post-review commit in the final squash: fix(tencent): preserve TokenHub auth compatibility - Included post-review commit in the final squash: refactor(tencent): unify TokenPlan env/flag naming with TokenHub - Included post-review commit in the final squash: docs: refresh Tencent provider docs metadata - Included post-review commit in the final squash: fix: allow TokenPlan provider config overlays - Included post-review commit in the final squash: docs: dedupe Tencent provider glossary labels - Included post-review commit in the final squash: fix(tencent): repair TokenHub model defaults Validation: - ClawSweeper review passed for head30c9fc130f. - Required merge gates passed before the squash merge. Prepared head SHA:30c9fc130fReview: https://github.com/openclaw/openclaw/pull/99076#issuecomment-4888527271 Co-authored-by: leisang <leisang@tencent.com> Co-authored-by: Mason Huang <masonxhuang@tencent.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: hxy91819
27 lines
777 B
TypeScript
27 lines
777 B
TypeScript
// Tencent provider module implements model/runtime integration.
|
|
import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import {
|
|
buildTokenHubModelDefinition,
|
|
buildTokenPlanModelDefinition,
|
|
TOKENHUB_BASE_URL,
|
|
TOKENHUB_MODEL_CATALOG,
|
|
TOKENPLAN_BASE_URL,
|
|
TOKENPLAN_MODEL_CATALOG,
|
|
} from "./models.js";
|
|
|
|
export function buildTokenHubProvider(): ModelProviderConfig {
|
|
return {
|
|
baseUrl: TOKENHUB_BASE_URL,
|
|
api: "openai-completions",
|
|
models: TOKENHUB_MODEL_CATALOG.map(buildTokenHubModelDefinition),
|
|
};
|
|
}
|
|
|
|
export function buildTokenPlanProvider(): ModelProviderConfig {
|
|
return {
|
|
baseUrl: TOKENPLAN_BASE_URL,
|
|
api: "openai-completions",
|
|
models: TOKENPLAN_MODEL_CATALOG.map(buildTokenPlanModelDefinition),
|
|
};
|
|
}
|