test: narrow web search provider contract imports · openclaw/openclaw@a0262c3
shakkernerd
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -import { normalizeGoogleApiBaseUrl } from "../api.js"; |
| 1 | +import { normalizeGoogleApiBaseUrl } from "../provider-policy.js"; |
2 | 2 | |
3 | 3 | const DEFAULT_GEMINI_WEB_SEARCH_MODEL = "gemini-2.5-flash"; |
4 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,7 +22,7 @@ import {
|
22 | 22 | wrapWebContent, |
23 | 23 | writeCachedSearchPayload, |
24 | 24 | } from "openclaw/plugin-sdk/provider-web-search"; |
25 | | -import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime"; |
| 25 | +import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime"; |
26 | 26 | import { |
27 | 27 | DEFAULT_PERPLEXITY_BASE_URL, |
28 | 28 | inferPerplexityBaseUrlFromApiKey, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ import {
|
7 | 7 | import { |
8 | 8 | normalizeLowercaseStringOrEmpty, |
9 | 9 | normalizeOptionalString, |
10 | | -} from "openclaw/plugin-sdk/text-runtime"; |
| 10 | +} from "openclaw/plugin-sdk/string-coerce-runtime"; |
11 | 11 | |
12 | 12 | export const DEFAULT_PERPLEXITY_BASE_URL = "https://openrouter.ai/api/v1"; |
13 | 13 | export const PERPLEXITY_DIRECT_BASE_URL = "https://api.perplexity.ai"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。