refactor: trim provider discovery internal exports · openclaw/openclaw@0d631fa
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -23,7 +23,7 @@ function resolveClaudeCliSyntheticAuth() {
|
23 | 23 | }; |
24 | 24 | } |
25 | 25 | |
26 | | -export const anthropicProviderDiscovery: ProviderPlugin = { |
| 26 | +const anthropicProviderDiscovery: ProviderPlugin = { |
27 | 27 | id: CLAUDE_CLI_BACKEND_ID, |
28 | 28 | label: "Claude CLI", |
29 | 29 | docsPath: "/providers/models", |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared"; |
2 | 2 | import { buildBytePlusCodingProvider, buildBytePlusProvider } from "./provider-catalog.js"; |
3 | 3 | |
4 | | -export const bytePlusProviderDiscovery: ProviderPlugin[] = [ |
| 4 | +const bytePlusProviderDiscovery: ProviderPlugin[] = [ |
5 | 5 | { |
6 | 6 | id: "byteplus", |
7 | 7 | label: "BytePlus", |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared"; |
2 | 2 | import { buildDeepSeekProvider } from "./provider-catalog.js"; |
3 | 3 | |
4 | | -export const deepSeekProviderDiscovery: ProviderPlugin = { |
| 4 | +const deepSeekProviderDiscovery: ProviderPlugin = { |
5 | 5 | id: "deepseek", |
6 | 6 | label: "DeepSeek", |
7 | 7 | docsPath: "/providers/deepseek", |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared"; |
2 | 2 | import { buildMoonshotProvider } from "./provider-catalog.js"; |
3 | 3 | |
4 | | -export const moonshotProviderDiscovery: ProviderPlugin = { |
| 4 | +const moonshotProviderDiscovery: ProviderPlugin = { |
5 | 5 | id: "moonshot", |
6 | 6 | label: "Moonshot", |
7 | 7 | docsPath: "/providers/moonshot", |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared"; |
2 | 2 | import { buildTokenHubProvider } from "./provider-catalog.js"; |
3 | 3 | |
4 | | -export const tencentProviderDiscovery: ProviderPlugin = { |
| 4 | +const tencentProviderDiscovery: ProviderPlugin = { |
5 | 5 | id: "tencent-tokenhub", |
6 | 6 | label: "Tencent TokenHub", |
7 | 7 | docsPath: "/providers/models", |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared"; |
2 | 2 | import { buildDoubaoCodingProvider, buildDoubaoProvider } from "./provider-catalog.js"; |
3 | 3 | |
4 | | -export const volcengineProviderDiscovery: ProviderPlugin[] = [ |
| 4 | +const volcengineProviderDiscovery: ProviderPlugin[] = [ |
5 | 5 | { |
6 | 6 | id: "volcengine", |
7 | 7 | label: "Volcengine", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,7 @@ function resolveXaiSyntheticAuth(config: unknown) {
|
16 | 16 | : undefined; |
17 | 17 | } |
18 | 18 | |
19 | | -export const xaiProviderDiscovery: ProviderPlugin = { |
| 19 | +const xaiProviderDiscovery: ProviderPlugin = { |
20 | 20 | id: PROVIDER_ID, |
21 | 21 | label: "xAI", |
22 | 22 | docsPath: "/providers/models", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。