@perspective-dev/viewer
    Preparing search index...

    Variable providersConst

    providers: {
        anthropic: {
            headers: { "anthropic-dangerous-direct-browser-access": "true" };
            model: "claude-opus-5";
            name: "anthropic";
            url: "https://api.anthropic.com/v1/chat/completions";
        };
        gemini: {
            model: "gemini-2.5-flash";
            name: "gemini";
            url: "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions";
        };
        lmstudio: {
            name: "lmstudio";
            url: "http://localhost:1234/v1/chat/completions";
        };
        ollama: {
            name: "ollama";
            url: "http://localhost:11434/v1/chat/completions";
        };
        openai: {
            model: "gpt-5.2";
            name: "openai";
            url: "https://api.openai.com/v1/chat/completions";
        };
        openrouter: {
            name: "openrouter";
            url: "https://openrouter.ai/api/v1/chat/completions";
        };
    } = ...

    Type Declaration

    • Readonlyanthropic: {
          headers: { "anthropic-dangerous-direct-browser-access": "true" };
          model: "claude-opus-5";
          name: "anthropic";
          url: "https://api.anthropic.com/v1/chat/completions";
      }

      Anthropic's OpenAI-compatibility endpoint. apiKey required.

    • Readonlygemini: {
          model: "gemini-2.5-flash";
          name: "gemini";
          url: "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions";
      }

      Google Gemini's OpenAI-compatibility endpoint. apiKey required.

    • Readonlylmstudio: { name: "lmstudio"; url: "http://localhost:1234/v1/chat/completions" }

      LM Studio's local developer server (enable CORS in its settings).

    • Readonlyollama: { name: "ollama"; url: "http://localhost:11434/v1/chat/completions" }

      Local Ollama (set OLLAMA_ORIGINS for CORS).

    • Readonlyopenai: {
          model: "gpt-5.2";
          name: "openai";
          url: "https://api.openai.com/v1/chat/completions";
      }

      OpenAI. apiKey required.

    • Readonlyopenrouter: { name: "openrouter"; url: "https://openrouter.ai/api/v1/chat/completions" }

      OpenRouter. apiKey required.