Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions interpreter/terminal_interface/local_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,12 @@ def download_model(models_dir, models, interpreter):
print(e)
print("Model process terminated.")

if model_path is None:
print(
"\nNo model was downloaded. Cannot start Llamafile. Please try again or choose a different provider.\n"
)
return interpreter

# Set flags for Llamafile to work with interpreter
interpreter.llm.model = "openai/local"
interpreter.llm.api_key = "dummy"
Expand Down