mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-31 11:54:37 +08:00
nit in chat
This commit is contained in:
parent
782f5a71b7
commit
5f52882e32
@ -25,11 +25,9 @@ response = generate(
|
||||
tokenizer,
|
||||
prompt=prompt,
|
||||
verbose=True,
|
||||
max_tokens=1024,
|
||||
temp=0.0,
|
||||
prompt_cache=prompt_cache,
|
||||
)
|
||||
messages.append({"role": "assistant", "content": response})
|
||||
|
||||
# User turn
|
||||
prompt = "What's my name?"
|
||||
@ -44,7 +42,6 @@ response = generate(
|
||||
tokenizer,
|
||||
prompt=prompt,
|
||||
verbose=True,
|
||||
max_tokens=1024,
|
||||
temp=0.0,
|
||||
prompt_cache=prompt_cache,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user