-
Notifications
You must be signed in to change notification settings - Fork 44.7k
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
✨ [Feature] language available as an option #171
✨ [Feature] language available as an option #171
Conversation
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.
def __init__(self):
self.continuous_mode = False
self.speak_mode = False
self.language = None # Add this line
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.
Can't get the program to speak Swedish though. Trying both -- sv and -- swedish as an option to start the program but it still speaks english. python main.py --language swedish
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.
Added this in prompt.txt:
3. Reflect in swedish on past decisions and strategies to refine your approach.
Ensure the response can be parsed by Python json.loads
Ensure to use swedish language to use Google Search and Browse Website
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.
LGTM, but I guess more prompt engineering is needed to ensure that it works reliably. I can test Russian, Ukrainian and Spanish if necessary.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
This is a mass message from the AutoGPT core team. For more details (and for infor on joining our Discord), please refer to: |
Hey, please fix merge conflicts. |
@@ -284,6 +290,8 @@ def parse_arguments(): | |||
while True: | |||
# Send message to AI, get response | |||
with Spinner("Thinking... "): | |||
if cfg.language: |
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.
Not sure if this is the right place for this to live
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.
Don't configure prompt language from the main.
Add Tests
Add challenge
@merwanehamadi how would a challenge for this work? |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
|
What do you think of an option like this to enable language support ?