Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pass custom parameters to the provider #306

Open
snowyu opened this issue Mar 17, 2024 · 0 comments
Open

Cannot pass custom parameters to the provider #306

snowyu opened this issue Mar 17, 2024 · 0 comments

Comments

@snowyu
Copy link

snowyu commented Mar 17, 2024

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.",
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant