refactor(agents): hide custom api source id helper · openclaw/openclaw@25a7e34
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,7 @@ import {
|
11 | 11 | resetApiProviders, |
12 | 12 | } from "../llm/providers/register-builtins.js"; |
13 | 13 | import { createAssistantMessageEventStream } from "../llm/utils/event-stream.js"; |
14 | | -import { ensureCustomApiRegistered, getCustomApiRegistrySourceId } from "./custom-api-registry.js"; |
| 14 | +import { ensureCustomApiRegistered } from "./custom-api-registry.js"; |
15 | 15 | |
16 | 16 | function getRegisteredTestProvider() { |
17 | 17 | const provider = getApiProvider("test-custom-api"); |
@@ -23,7 +23,6 @@ function getRegisteredTestProvider() {
|
23 | 23 | |
24 | 24 | describe("ensureCustomApiRegistered", () => { |
25 | 25 | afterEach(() => { |
26 | | -unregisterApiProviders(getCustomApiRegistrySourceId("test-custom-api")); |
27 | 26 | clearApiProviders(); |
28 | 27 | registerBuiltInApiProviders(); |
29 | 28 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。