Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

v0.125.0

Choose a tag to compare

@lgrammel lgrammel released this 14 Jan 16:49

Added

  • Perplexity AI chat completion support. Example:

    import { openaicompatible, streamText } from "modelfusion";
    
    const textStream = await streamText({
      model: openaicompatible
        .ChatTextGenerator({
          api: openaicompatible.PerplexityApi(),
          provider: "openaicompatible-perplexity",
          model: "pplx-70b-online", // online model with access to web search
          maxGenerationTokens: 500,
        })
        .withTextPrompt(),
    
      prompt: "What is RAG in AI?",
    });