Neutrome SDK reference
    Preparing search index...

    Function parseProviderRequest

    • Parses a provider request body into a program.

      Parameters

      • style: ProviderStyle

        Wire format the body is written in.

      • body: Uint8Array

        Raw request body.

      Returns Program

      The decoded program.

      const request = parseProviderRequest("chat-completions", body);
      const model = getModel(request);