zeno-ml / zeno-build

Build, evaluate, understand, and fix LLM-based apps
MIT License
484 stars 33 forks source link

Add param to change number of generated responses #180

Closed lindiatjuatja closed 1 year ago

lindiatjuatja commented 1 year ago

Description

Add num_responses param (with default value 1) to generate_from_text_prompt and generate_from_chat_prompt to allow changing n param in the OpenAI API call