Skip to content

OpenAiCompatibleInvestigationConfig ​

ts
type OpenAiCompatibleInvestigationConfig = object;

Any provider exposing an OpenAI-compatible Chat Completions API (Gemini, Mistral, Groq, Ollama, OpenRouter, vLLM, ...).

Properties ​

provider ​

ts
provider: "openai-compatible";

baseURL ​

ts
baseURL: string;

The endpoint's API root, e.g. 'https://openrouter.ai/api/v1' for OpenRouter.


model ​

ts
model: string;

Model id as the endpoint names it.


apiKey? ​

ts
optional apiKey?: string;

Sent as a bearer token; omit it for endpoints without auth.


headers? ​

ts
optional headers?: Record<string, string>;

Extra headers sent with every request.


supportsStructuredOutputs? ​

ts
optional supportsStructuredOutputs?: boolean;

Whether the endpoint enforces JSON Schema structured output. When false, the model is only asked for JSON and the outcome is validated after the fact.

Default Value ​

false


maxToolIterations? ​

ts
optional maxToolIterations?: number;

Maximum model turns spent calling investigation and MCP tools before returning an outcome. Unlimited by default.


maxTokens? ​

ts
optional maxTokens?: number;

Maximum tokens the model may generate per turn.


fetch? ​

ts
optional fetch?: typeof fetch;

Custom fetch implementation, used instead of the global one (proxying, custom auth, logging, retries, ...).