Skip to content

Commit

Permalink
fix frontend list assistants issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay920 committed Feb 13, 2024
1 parent 5718c29 commit 0bd2068
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions services/frontend/ui/app/pages/2_🤖_Explore_Assistants.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@

def get_all_assistants():
all_assistants = []
after = None
while True:
response = rubra_client.beta.assistants.list(limit=100, after=after)
assistants = response.data

all_assistants.extend(assistants)

if len(assistants) < 100:
break
else:
Expand Down

0 comments on commit 0bd2068

Please sign in to comment.