-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix/get prompt description #640
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
base: main
Are you sure you want to change the base?
Fix/get prompt description #640
Conversation
…; added async test and lint cleanup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution! Apologies for the time it took to get a review.
I read through the description, but I'm not sure how this change affects anything related to get_prompt
- the only code change seems to be a single line in server.py
:
self.settings: Settings
Which I believe is redundant given it's set right below. Also I believe there are a lot of test / workflow / unrelated changes in this PR.
Would you mind cleaning this up and pushing an update if this is still an issue for you?
@@ -132,6 +132,7 @@ def __init__( | |||
| None = None, | |||
**settings: Any, | |||
): | |||
self.settings: Settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is redundant given the line below
Fixed the issue with get_prompt() not returning the correct description. The function was modified to ensure the prompt description is correctly fetched and returned.
Motivation and Context
Why is this change needed?
The get_prompt() method was not properly retrieving the description associated with the prompt. This change fixes that behavior, ensuring that the description is returned as expected.
What problem does it solve?
This resolves the issue where the description for certain prompts was missing or not properly accessible.
How Has This Been Tested?
Yes, I tested the get_prompt() method locally using unit tests to ensure that the description is returned correctly.
I also ran the existing tests in test_prompts.py to confirm that no other functionality was broken.
Breaking Changes
No breaking changes were introduced. This is a non-breaking bug fix that addresses the behavior of get_prompt().
Types of changes
Checklist
Additional context
This change only affects the behavior of get_prompt() and is tested with the current version of the codebase. If any further adjustments are required, we will address them based on feedback.