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

How to pass param n to ChatSparkLLM.generate() #56

Open
chansonzhang opened this issue Nov 19, 2024 · 0 comments
Open

How to pass param n to ChatSparkLLM.generate() #56

chansonzhang opened this issue Nov 19, 2024 · 0 comments

Comments

@chansonzhang
Copy link

param n is widely supprted by LLM clients to specify how many completions to generate for the conversation.
e.g.

So, how can I pass n to ChatSparkLLM.generate()

When I use

spark = ChatSparkLLM(n=2, <other params ommitted>)

It report sparkai.errors.SparkAIConnectionError: Error Code: 10004, Error: SchemaCheckError:(14:37:32.934) '$.parameter.chat.n' unknown field;

When I use

spark.generate([messages], callbacks=[handler],n=2,)

It just doesn't work.

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