Skip to content

Commit

Permalink
Merge pull request #217 from pieces-app/fix-conversation
Browse files Browse the repository at this point in the history
fix if conversation is 0
  • Loading branch information
bishoy-at-pieces authored Nov 11, 2024
2 parents 4626893 + 3df3dfc commit bbbe29e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pieces/copilot/conversations.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def get_conversations(max_conversations,**kwargs):

def get_conversation_messages(idx:Optional[int]=None,conversation:Optional[BasicChat]=None):
"""Print a conversation messages. you need to pass the index of the conversation or the conversation id"""
if idx:

if idx is not None:
conversation = Settings.pieces_client.copilot.chats()[idx]


Expand Down

0 comments on commit bbbe29e

Please sign in to comment.