MAIDR Documentation - v3.69.0
    Preparing search index...

    Function isValidOllamaBaseUrl

    • Checks that an Ollama base URL uses a plain web scheme. Only http(s) makes sense for an Ollama server, and rejecting anything else avoids handing arbitrary protocols (file:, etc.) to fetch in both the probe and chat paths.

      Parameters

      • OptionalbaseUrl: string

        The user-provided server base URL

      Returns boolean

      True when the normalized URL starts with http:// or https://