summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-10-19 21:38:54 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-10-19 21:38:54 +0200
commitd7b0c2230d95533452026d111a52403e718558c0 (patch)
treed9bed2b5844b74035b39f07541a70494cab91576 /g4f/Provider
parentfix(g4f/Provider/HuggingChat.py): handle JSON decode errors and response status (diff)
downloadgpt4free-d7b0c2230d95533452026d111a52403e718558c0.tar
gpt4free-d7b0c2230d95533452026d111a52403e718558c0.tar.gz
gpt4free-d7b0c2230d95533452026d111a52403e718558c0.tar.bz2
gpt4free-d7b0c2230d95533452026d111a52403e718558c0.tar.lz
gpt4free-d7b0c2230d95533452026d111a52403e718558c0.tar.xz
gpt4free-d7b0c2230d95533452026d111a52403e718558c0.tar.zst
gpt4free-d7b0c2230d95533452026d111a52403e718558c0.zip
Diffstat (limited to 'g4f/Provider')
-rw-r--r--g4f/Provider/AmigoChat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/AmigoChat.py b/g4f/Provider/AmigoChat.py
index 5d579841..f5027111 100644
--- a/g4f/Provider/AmigoChat.py
+++ b/g4f/Provider/AmigoChat.py
@@ -73,7 +73,7 @@ class AmigoChat(AsyncGeneratorProvider, ProviderModelMixin):
elif model in cls.model_aliases:
return cls.model_aliases[model]
else:
- return cls.default_chat_model if model in cls.chat_models else cls.default_image_model
+ return cls.default_model
@classmethod
def get_personaId(cls, model: str) -> str: