Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace OpenRouter
{
/// <summary>
/// Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape (requires BYOK).
/// Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape (requires BYOK). "parallel" uses the Parallel extract API.
/// </summary>
public enum WebFetchEngineEnum
{
Expand All @@ -28,6 +28,10 @@ public enum WebFetchEngineEnum
///
/// </summary>
Openrouter,
/// <summary>
///
/// </summary>
Parallel,
}

/// <summary>
Expand All @@ -47,6 +51,7 @@ public static string ToValueString(this WebFetchEngineEnum value)
WebFetchEngineEnum.Firecrawl => "firecrawl",
WebFetchEngineEnum.Native => "native",
WebFetchEngineEnum.Openrouter => "openrouter",
WebFetchEngineEnum.Parallel => "parallel",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -62,6 +67,7 @@ public static string ToValueString(this WebFetchEngineEnum value)
"firecrawl" => WebFetchEngineEnum.Firecrawl,
"native" => WebFetchEngineEnum.Native,
"openrouter" => WebFetchEngineEnum.Openrouter,
"parallel" => WebFetchEngineEnum.Parallel,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public sealed partial class WebFetchServerToolConfig
public global::System.Collections.Generic.IList<string>? BlockedDomains { get; set; }

/// <summary>
/// Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape (requires BYOK).
/// Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape (requires BYOK). "parallel" uses the Parallel extract API.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("engine")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.WebFetchEngineEnumJsonConverter))]
Expand Down Expand Up @@ -55,7 +55,7 @@ public sealed partial class WebFetchServerToolConfig
/// Never fetch from these domains.
/// </param>
/// <param name="engine">
/// Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape (requires BYOK).
/// Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape (requires BYOK). "parallel" uses the Parallel extract API.
/// </param>
/// <param name="maxContentTokens">
/// Maximum content length in approximate tokens. Content exceeding this limit is truncated.
Expand Down
5 changes: 3 additions & 2 deletions src/libs/OpenRouter/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10933,9 +10933,10 @@
"native",
"openrouter",
"firecrawl",
"exa"
"exa",
"parallel"
],
"description": "Which fetch engine to use. \"auto\" (default) uses native if the provider supports it, otherwise Exa. \"native\" forces the provider's built-in fetch. \"exa\" uses Exa Contents API. \"openrouter\" uses direct HTTP fetch. \"firecrawl\" uses Firecrawl scrape (requires BYOK).",
"description": "Which fetch engine to use. \"auto\" (default) uses native if the provider supports it, otherwise Exa. \"native\" forces the provider's built-in fetch. \"exa\" uses Exa Contents API. \"openrouter\" uses direct HTTP fetch. \"firecrawl\" uses Firecrawl scrape (requires BYOK). \"parallel\" uses the Parallel extract API.",
"title": "WebFetchEngineEnum"
},
"WebFetchServerToolConfig": {
Expand Down