175 converse with gemini api using langchain#177
Open
biniyam-29 wants to merge 19 commits intorelease-02from
Open
175 converse with gemini api using langchain#177biniyam-29 wants to merge 19 commits intorelease-02from
biniyam-29 wants to merge 19 commits intorelease-02from
Conversation
Collaborator
biniyam-29
commented
Mar 30, 2025
- On this PR I've been successful to be able to converse with gemini api
- If the a conversation had to be newly created it will send to the message exchange with 'moderator' routing (which will be directed to only database and moderator aka "the bot")
- Since everytime a conversation is not created but if the conversation exists yet it is with the moderator aka "the bot" it will send it to the message exchange by 'moderator' routing key. but if the mentor is not a bot it will be sent with a 'message' routing key which goes to the web.
- Once the response has been captured from the gemini api the response will be formatted with our system chat-message-standard-format it will be sent to the chat exchange which by then the database and the chat consumer will get the message.
- Once the chat consumer gets the message it will concurrently send the message as the database consumer is saving the message.
…ueue with the right routing routing key
…etter-exchange' for queue 'database' in vhost '/': received 'moderator' but current is 'message'
…or-mentor-profile' into 175-converse-with-gemini-api-using-langchain
…e it was not getting and response from the consumer)
…was throwing error cause it is stringfied, so placed a parser based on type)
…hole response is non-sense when it is sent)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.