mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-21 17:56:38 +00:00
upgraded
This commit is contained in:
parent
2b6a91a3c1
commit
4c2d4c9069
@ -260,12 +260,14 @@ def chat_completions():
|
||||
if True:
|
||||
def callback(token, data_type):
|
||||
print(token)
|
||||
return True
|
||||
response = cv.safe_generate(
|
||||
full_discussion=full_discussion,
|
||||
temperature=temperature,
|
||||
top_p=top_p,
|
||||
n_predict=max_tokens,
|
||||
callback=callback
|
||||
# callback=callback
|
||||
|
||||
)
|
||||
def stream():
|
||||
nonlocal response
|
||||
|
Loading…
x
Reference in New Issue
Block a user