edersonmelo commited on
Commit
2e5f69a
·
verified ·
1 Parent(s): 34b8519

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -24,7 +24,7 @@ async def stream(item: dict):
24
  if 'prompt' not in item.keys():
25
  raise ValueError("prompt é obrigatório")
26
 
27
- prompt = item['prompt']
28
  temperatura = item['temperatura'] if 'temperatura' in item.keys() else 0.2
29
  max_tokens = item['max_tokens'] if 'max_tokens' in item.keys() else 512
30
 
 
24
  if 'prompt' not in item.keys():
25
  raise ValueError("prompt é obrigatório")
26
 
27
+ prompt = "<|system|>You are a helpfull assistant</s><|user|>"+item['prompt']+"</s><|assistant|>"
28
  temperatura = item['temperatura'] if 'temperatura' in item.keys() else 0.2
29
  max_tokens = item['max_tokens'] if 'max_tokens' in item.keys() else 512
30