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

Add translated_message field to ChatMessage model #145

Closed
wants to merge 1 commit into from

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented May 25, 2023

This pull request adds functionality to the Ayushma application by adding a new field, translated_message to the ChatMessage model. The ChatMessageSerializer class has also been updated to include this new field to its output. The converse() function has also undergone changes to support translation of chat messages, recording the original message and the translated message.

Additionally, the utils/openaiapi.py module has been modified to update the converse() function and to add an import of typing.Dict and typing.List.

These changes will enhance the functionality of the Ayushma application by adding the capability to retrieve the original message and its respective translation, making it easier to check the accuracy of the translation, if necessary.

@Ashesh3
Copy link
Member Author

Ashesh3 commented May 26, 2023

No longer required, resolved by #131

@Ashesh3 Ashesh3 closed this May 26, 2023
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

Successfully merging this pull request may close these issues.

None yet

1 participant