featherbit UI
    Preparing search index...

    Function streamChat

    • Streams one completion. Yields text deltas as they arrive, then (if the model requested tools) one tool_calls event, then done.

      Parameters

      • settings: ProviderSettings
      • messages: WireMessage[]
      • tools: ToolDef[]
      • signal: AbortSignal
      • fetchImpl: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response> = fetch
          • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
          • Parameters

            • input: RequestInfo | URL
            • Optionalinit: RequestInit

            Returns Promise<Response>

      Returns AsyncGenerator<StreamEvent>