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.
param
nis widely supprted by LLM clients to specify how many completions to generate for the conversation.e.g.
So, how can I pass
nto ChatSparkLLM.generate()When I use
It report
sparkai.errors.SparkAIConnectionError: Error Code: 10004, Error: SchemaCheckError:(14:37:32.934) '$.parameter.chat.n' unknown field;When I use
It just doesn't work.