Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan committed Apr 2, 2024
1 parent 3bcc088 commit 9046eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_few_shot_str(assistant_id: str, *, agent: bool = False) -> str:
examples = list(client.list_examples(dataset_name=assistant_id))
if not examples:
return ""
examples = random.sample(examples, min(len(examples), 10))
examples = random.sample(examples, min(len(examples), 5))
if agent:
example_str = "\n".join([_format_agent_example(e) for e in examples])
else:
Expand Down

0 comments on commit 9046eb6

Please sign in to comment.