mirror of
https://github.com/Hopiu/llm.git
synced 2026-04-21 21:44:46 +00:00
Added default model back in again, refs #6
This commit is contained in:
parent
52c54d282d
commit
2d1ae2beb5
1 changed files with 4 additions and 2 deletions
|
|
@ -15,6 +15,8 @@ You are a code generating tool. Return just the code, with no explanation
|
|||
or context other than comments in the code itself.
|
||||
""".strip()
|
||||
|
||||
DEFAULT_MODEL = "gpt-3.5-turbo"
|
||||
|
||||
|
||||
@click.group(
|
||||
cls=DefaultGroup,
|
||||
|
|
@ -79,8 +81,8 @@ def chatgpt(prompt, system, gpt4, model, stream, no_log, code, _continue, chat_i
|
|||
if system:
|
||||
messages.append({"role": "system", "content": system})
|
||||
messages.append({"role": "user", "content": prompt})
|
||||
if model is None and history_model is not None:
|
||||
model = history_model
|
||||
if model is None:
|
||||
model = history_model or DEFAULT_MODEL
|
||||
try:
|
||||
if stream:
|
||||
response = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue