langchain.js
    Preparing search index...

    Wrapper around Fireworks API for large language models

    Fireworks API is compatible to the OpenAI API with some limitations described in https://readme.fireworks.ai/docs/openai-compatibility.

    To use, you should have the openai package installed and the FIREWORKS_API_KEY environment variable set.

    Hierarchy

    Index

    Constructors

    • Parameters

      • Optionalfields: any

      Returns Fireworks

    Properties

    fireworksApiKey?: string
    lc_serializable: boolean = true

    Accessors

    • get lc_secrets(): undefined | { [key: string]: string }

      Returns undefined | { [key: string]: string }

    Methods

    • Returns string

    • Calls the OpenAI API with retry logic in case of failures.

      Parameters

      • request: CompletionCreateParamsStreaming

        The request to send to the OpenAI API.

      • Optionaloptions: RequestOptions

        Optional configuration for the API call.

      Returns Promise<AsyncIterable<Completion, any, any>>

      The response from the OpenAI API.

    • Parameters

      • request: CompletionCreateParamsNonStreaming
      • Optionaloptions: RequestOptions

      Returns Promise<Completion>

    • Returns any

    • Returns string