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

Fixing bugs in prompt rendering #787

Merged
merged 4 commits into from
Aug 27, 2024
Merged

Fixing bugs in prompt rendering #787

merged 4 commits into from
Aug 27, 2024

Conversation

maxl0rd
Copy link
Contributor

@maxl0rd maxl0rd commented Aug 14, 2024

This fixes the bug reported in #422 where renderPrompt does not preserve the output schema that the prompt function returns.

This also fixes the bug reported in #757 where Dotprompt.render() only accepts default options. With this change, the render and generate methods will accept any options, unless a model is also passed in the method, in which case it requires the custom options defined by that model.

@maxl0rd maxl0rd requested a review from apascal07 August 14, 2024 19:33
@apascal07
Copy link
Collaborator

apascal07 commented Aug 27, 2024

Please add descriptive comments to all user-facing exported functions and types (e.g. renderPrompt, etc) explaining how they are to be used. We need to improve our docs bit by bit. :-)

@maxl0rd
Copy link
Contributor Author

maxl0rd commented Aug 27, 2024

Added some better docs for public methods.

@maxl0rd maxl0rd requested a review from apascal07 August 27, 2024 18:43
@maxl0rd maxl0rd merged commit 85eb60b into main Aug 27, 2024
4 checks passed
@maxl0rd maxl0rd deleted the ml_prompt_output branch August 27, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants