Skip to main content
Glama
retry-config.ts850 B
/** * Retry configuration constants for web API calls * * These values are used by web-fetch and web-search tools when calling * the Ollama Cloud API endpoints. They align with the default values * in RetryOptions but are extracted here for consistency and maintainability. */ import { RetryOptions } from './retry.js'; /** * Standard retry configuration for web API calls * * - maxRetries: 3 retry attempts after the initial call * - initialDelay: 1000ms (1 second) before first retry * - maxDelay: Uses default from RetryOptions (10000ms) */ export const WEB_API_RETRY_CONFIG: RetryOptions = { maxRetries: 3, initialDelay: 1000, } as const; /** * Request timeout for web API calls * * Individual requests timeout after 30 seconds to prevent * indefinitely hung connections. */ export const WEB_API_TIMEOUT = 30000 as const;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rawveg/ollama-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server