Files
Alonso Guevara 9fa6b91684 Chore/community context clean (#1262)
* Update community_context.py to check conversation_history_context's value

For the following code (line 90 - 96), conversation_history_context is concatenated with community_context, but the case where conversation_history_context is empty("") has not been considered. When conversation_history_context is empty (""), concatenation should not be performed, as it would result in community_context or each element in community_context having an extra "\n\n".

Therefore, by introducing a context_prefix to check the state of conversation_history_context, concatenation can be handled appropriately. When conversation_history_context is empty (""), the following code will use "" for concatenation. When conversation_history_context is not empty (""), the functionality will be similar to the previous code.

* Format and semver

* Code cleanup

---------

Co-authored-by: ZeyuTeng96 <96521059+ZeyuTeng96@users.noreply.github.com>
2024-10-09 17:01:54 -06:00
..
2024-07-01 15:25:30 -06:00
2024-07-01 15:25:30 -06:00
2024-09-17 01:37:27 -04:00
2024-07-01 15:25:30 -06:00