mirror of
https://github.com/Hopiu/llm.git
synced 2026-05-25 13:53:42 +00:00
Fix bug with llm chat -c and API keys, closes #247
This commit is contained in:
parent
b2fc0a11cf
commit
17e6402908
1 changed files with 3 additions and 0 deletions
|
|
@ -364,6 +364,9 @@ def chat(system, model_id, _continue, conversation_id, template, param, key):
|
|||
if conversation is None:
|
||||
# Start a fresh conversation for this chat
|
||||
conversation = Conversation(model=model)
|
||||
else:
|
||||
# Ensure it can see the API key
|
||||
conversation.model = model
|
||||
|
||||
click.echo("Chatting with {}".format(model.model_id))
|
||||
click.echo("Type 'exit' or 'quit' to exit")
|
||||
|
|
|
|||
Loading…
Reference in a new issue