abenkbp commited on
Commit
6f6d59f
·
1 Parent(s): 61f3e17
Files changed (1) hide show
  1. data/models/llama3-1-8b.py +4 -4
data/models/llama3-1-8b.py CHANGED
@@ -25,10 +25,10 @@ pipeline = transformers.pipeline(
25
  def chat_completion():
26
  data = request.json
27
 
28
- user_input = data[0].get('user_input', [])
29
- max_tokens = data[0].get('max_tokens', 2048)
30
- temperature = data[0].get('temperature', 0.7)
31
- top_p = data[0].get('top_p', 0.95)
32
 
33
  try:
34
  outputs = pipeline(
 
25
  def chat_completion():
26
  data = request.json
27
 
28
+ user_input = data.get('messages', [])
29
+ max_tokens = data.get('max_tokens', 2048)
30
+ temperature = data.get('temperature', 0.7)
31
+ top_p = data.get('top_p', 0.95)
32
 
33
  try:
34
  outputs = pipeline(