Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions flo_ai/flo_ai/llm/openai_vllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,13 @@ async def generate(
if messages and messages[0]['role'] == 'system':
messages[0]['content'] = (
messages[0]['content']
+ '\n\nPlease provide your response in JSON format according to the specified schema.'
+ f'\n\nPlease provide your response in JSON format according to the specified schema. \n\n {output_schema}'
)
else:
messages.insert(
0,
{
'role': 'system',
'content': 'Please provide your response in JSON format according to the specified schema.',
'content': f'Please provide your response in JSON format according to the specified schema.\n \n {output_schema}',
},
)

Expand Down