refactor: trim live model scan exports · openclaw/openclaw@188ab3a
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -53,7 +53,7 @@ type BaselineFindings = {
|
53 | 53 | warnings: string[]; |
54 | 54 | }; |
55 | 55 | |
56 | | -export type LiveCacheRegressionResult = { |
| 56 | +type LiveCacheRegressionResult = { |
57 | 57 | regressions: string[]; |
58 | 58 | summary: Record<string, Record<string, unknown>>; |
59 | 59 | warnings: string[]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -export type LiveSessionModelSelection = { |
| 1 | +type LiveSessionModelSelection = { |
2 | 2 | provider: string; |
3 | 3 | model: string; |
4 | 4 | authProfileId?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -18,7 +18,7 @@ export type EnvApiKeyResult = {
|
18 | 18 | source: string; |
19 | 19 | }; |
20 | 20 | |
21 | | -export type EnvApiKeyLookupOptions = { |
| 21 | +type EnvApiKeyLookupOptions = { |
22 | 22 | config?: OpenClawConfig; |
23 | 23 | workspaceDir?: string; |
24 | 24 | aliasMap?: Readonly<Record<string, string>>; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -52,7 +52,7 @@ type OpenRouterModelPricing = {
|
52 | 52 | internalReasoning: number; |
53 | 53 | }; |
54 | 54 | |
55 | | -export type ProbeResult = { |
| 55 | +type ProbeResult = { |
56 | 56 | ok: boolean; |
57 | 57 | latencyMs: number | null; |
58 | 58 | error?: string; |
@@ -77,7 +77,7 @@ export type ModelScanResult = {
|
77 | 77 | image: ProbeResult; |
78 | 78 | }; |
79 | 79 | |
80 | | -export type OpenRouterScanOptions = { |
| 80 | +type OpenRouterScanOptions = { |
81 | 81 | apiKey?: string; |
82 | 82 | fetchImpl?: typeof fetch; |
83 | 83 | timeoutMs?: number; |
@@ -507,6 +507,3 @@ export async function scanOpenRouterModels(
|
507 | 507 | }, |
508 | 508 | ); |
509 | 509 | } |
510 | | - |
511 | | -export { OPENROUTER_MODELS_URL }; |
512 | | -export type { OpenRouterModelMeta, OpenRouterModelPricing }; |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。