aws-samples / bedrock-claude-chat

AWS-native chatbot using Bedrock + Claude (+Mistral)
MIT No Attribution
688 stars 232 forks source link

Fix error to use a shared bot. #350

Closed Taikono-Himazin closed 2 weeks ago

Taikono-Himazin commented 3 weeks ago

Issue #, if available:

作成したユーザとは別のユーザで共有されたBotを使用しようとすると、エラーが発生するのを修正しました。 しかし、これは仮の修正であり、この修正で良いのかは議論する必要があると考えています。

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

statefb commented 3 weeks ago

related issue: #351

wadabee commented 3 weeks ago

PRありがとうございます! 以下のaliasを保存する関数につきましても、修正をお願いしますmm 単純にhas_agentを追加するだけで、問題ないかと思います。

https://github.com/aws-samples/bedrock-claude-chat/blob/9329e121a3edfc19310ef07c60cb21471af892a3/backend/app/repositories/custom_bot.py#L142-L160

statefb commented 2 weeks ago

This bug fixed on #356 so let me close.