Represents the parameters for the Goinfer initialization.

GoinferParams

Hierarchy

  • GoinferParams

Properties

apiKey: string

The API key to authenticate.

onError?: ((e) => void)

Type declaration

    • (e): void
    • An optional callback function that receives an error message in case of any errors during the inference process.

      Parameters

      • e: string

      Returns void

onStartEmit?: ((s) => void)

Type declaration

    • (s): void
    • An optional callback function that receives TempInferStats when the inference process starts emitting.

      Parameters

      Returns void

onToken?: ((t) => void)

Type declaration

    • (t): void
    • A callback function that receives a string token.

      Parameters

      • t: string

      Returns void

serverUrl: string

The URL of the server.

Generated using TypeDoc