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

Cannot pass custom parameters to the provider #306

@snowyu

Description

@snowyu

I've added some new options to the llama.cpp, but can not pass to the provider, The all providers can not pass custom parameters too.

import { llamacpp, generateText } from "modelfusion";

const text = await generateText({
  model: llamacpp
    .CompletionTextGenerator({
      maxGenerationTokens: 2048,
      my_custom_param: 'can not pass',
      model: 'mistral-7b-openorca.Q8_0.gguf',
    })
    .withTextPrompt(), // use simple text prompt style

  prompt: "Write a short story about a robot learning to love.",
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions