Skip to content

Commit

Permalink
fix if conversation is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
bishoy-at-pieces committed Nov 11, 2024
1 parent 4d12233 commit bb380ee
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 @@ -100,8 +100,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 bb380ee

Please sign in to comment.