We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d69b062 commit 3a781e7Copy full SHA for 3a781e7
moss_api_demo.py
@@ -81,7 +81,7 @@ async def create_item(request: Request):
81
history_mp[uid] = []
82
for i, (old_query, response) in enumerate(history_mp[uid]):
83
prompt += '<|Human|>: ' + old_query + '<eoh>'+response
84
- prompt = '<|Human|>: ' + query + '<eoh>'
+ prompt += '<|Human|>: ' + query + '<eoh>'
85
max_length = json_post_list.get('max_length', 2048)
86
top_p = json_post_list.get('top_p', 0.8)
87
temperature = json_post_list.get('temperature', 0.7)
0 commit comments