mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-08 07:11:06 +00:00
fixed situation where there was no default model listed
This commit is contained in:
parent
371f16fac9
commit
70a7f7ad0c
@ -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…
Reference in New Issue
Block a user