test(cron): type OpenAI PI override config · openclaw/openclaw@9d5db92
vincentkoc
·
2026-05-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,6 +3,7 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
|
3 | 3 | import { loadModelCatalog } from "../agents/model-catalog.js"; |
4 | 4 | import { runEmbeddedPiAgent } from "../agents/pi-embedded.js"; |
5 | 5 | import { BASE_THINKING_LEVELS } from "../auto-reply/thinking.shared.js"; |
| 6 | +import type { OpenClawConfig } from "../config/types.openclaw.js"; |
6 | 7 | import type { PluginProviderRegistration } from "../plugins/registry.js"; |
7 | 8 | import { resetPluginRuntimeStateForTest, setActivePluginRegistry } from "../plugins/runtime.js"; |
8 | 9 | import { createTestRegistry } from "../test-utils/channel-plugins.js"; |
@@ -53,10 +54,11 @@ function mockDeterministicModelCatalog() {
|
53 | 54 | ]); |
54 | 55 | } |
55 | 56 | |
56 | | -const OPENAI_PI_RUNTIME_CONFIG = { |
| 57 | +const OPENAI_PI_RUNTIME_CONFIG: Partial<OpenClawConfig> = { |
57 | 58 | models: { |
58 | 59 | providers: { |
59 | 60 | openai: { |
| 61 | +baseUrl: "https://api.openai.com/v1", |
60 | 62 | agentRuntime: { id: "pi" }, |
61 | 63 | models: [], |
62 | 64 | }, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。