mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
refactor(plugins): localize provider internals (#101425)
This commit is contained in:
@@ -72,7 +72,7 @@ async function readFirecrawlJsonResponse(
|
||||
return await readProviderJsonResponse<Record<string, unknown>>(response, label, opts);
|
||||
}
|
||||
|
||||
export type FirecrawlSearchParams = {
|
||||
type FirecrawlSearchParams = {
|
||||
cfg?: OpenClawConfig;
|
||||
query: string;
|
||||
count?: number;
|
||||
@@ -82,7 +82,7 @@ export type FirecrawlSearchParams = {
|
||||
scrapeResults?: boolean;
|
||||
};
|
||||
|
||||
export type FirecrawlScrapeParams = {
|
||||
type FirecrawlScrapeParams = {
|
||||
cfg?: OpenClawConfig;
|
||||
url: string;
|
||||
extractMode: "markdown" | "text";
|
||||
|
||||
@@ -5,10 +5,10 @@ import {
|
||||
type WebSearchProviderPlugin,
|
||||
} from "openclaw/plugin-sdk/provider-web-search-contract";
|
||||
|
||||
export const FIRECRAWL_CREDENTIAL_PATH = "plugins.entries.firecrawl.config.webSearch.apiKey";
|
||||
export const FIRECRAWL_FETCH_CREDENTIAL_PATH = "plugins.entries.firecrawl.config.webFetch.apiKey";
|
||||
const FIRECRAWL_CREDENTIAL_PATH = "plugins.entries.firecrawl.config.webSearch.apiKey";
|
||||
const FIRECRAWL_FETCH_CREDENTIAL_PATH = "plugins.entries.firecrawl.config.webFetch.apiKey";
|
||||
|
||||
export function getConfiguredFirecrawlFetchCredentialFallback(config?: {
|
||||
function getConfiguredFirecrawlFetchCredentialFallback(config?: {
|
||||
plugins?: { entries?: { firecrawl?: { config?: unknown } } };
|
||||
}) {
|
||||
const apiKey = (
|
||||
|
||||
Reference in New Issue
Block a user