Browse Source

Fix the API extension

oobabooga 2 năm trước cách đây
mục cha
commit
64f5c90ee7
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      extensions/api/script.py

+ 1 - 0
extensions/api/script.py

@@ -57,6 +57,7 @@ class Handler(BaseHTTPRequestHandler):
                 'length_penalty': float(body.get('length_penalty', 1)),
                 'early_stopping': bool(body.get('early_stopping', False)),
                 'seed': int(body.get('seed', -1)),
+                'add_bos_token': int(body.get('add_bos_token', True)),
             }
 
             generator = generate_reply(