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

Move response format from general user-prompt to LLM class #27

Open
dguerri opened this issue Nov 13, 2024 · 0 comments
Open

Move response format from general user-prompt to LLM class #27

dguerri opened this issue Nov 13, 2024 · 0 comments

Comments

@dguerri
Copy link

dguerri commented Nov 13, 2024

The response template is added to the user_prompt before the latter is processed by each LLM class.
Some LLM APIs natively support response format (e.g., ChatGPT and Gemini) and sometimes can get confused by the json dump added to the user prompt.

One solution is to let each LLM class add the response format, maybe by implementing the user prompt creation in the base class and allowing subclasses to specialize its behaviour.

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