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

v0.124.0

Choose a tag to compare

@lgrammel lgrammel released this 13 Jan 20:08

Added

  • Embedding-support for OpenAI-compatible providers. You can for example use the Together AI embedding endpoint:

    import { embed, openaicompatible } from "modelfusion";
    
    const embedding = await embed({
      model: openaicompatible.TextEmbedder({
        api: openaicompatible.TogetherAIApi(),
        provider: "openaicompatible-togetherai",
        model: "togethercomputer/m2-bert-80M-8k-retrieval",
      }),
      value: "At first, Nox didn't know what to do with the pup.",
    });