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 (View Summary)

    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

    • Parameters

      • request: CompletionCreateParamsStreaming
      • Optionaloptions: any

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

    • Parameters

      • request: CompletionCreateParamsNonStreaming
      • Optionaloptions: any

      Returns Promise<Completion>

    • Returns any

    • Returns string