Browse Source

fixed situation where there was no default model listed

pull/264/head
xssdoctor 8 months ago
parent
commit
70a7f7ad0c
  1. 6
      installer/client/cli/utils.py

6
installer/client/cli/utils.py

@ -49,11 +49,7 @@ class Standalone:
self.args = args
self.model = getattr(args, 'model', None)
if not self.model:
try:
self.model = os.environ.get(
"DEFAULT_MODEL")
except KeyError:
self.model = 'gpt-4-turbo-preview'
self.model = 'gpt-4-turbo-preview'
self.claude = False
sorted_gpt_models, ollamaList, claudeList = self.fetch_available_models()
self.local = self.model in ollamaList

Loading…
Cancel
Save