diff options
author | foxfire52 <foxfire52@virgilio.it> | 2024-11-15 07:38:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 07:38:51 +0100 |
commit | f38428ab23a1ec1f6ee22b976189d7e9da9b9167 (patch) | |
tree | d1f0ab8b2f849a8162e2a1430910d0b41d300de5 /g4f/Provider/Mhystical.py | |
parent | Merge pull request #2331 from NoelisTired/main (diff) | |
download | gpt4free-f38428ab23a1ec1f6ee22b976189d7e9da9b9167.tar gpt4free-f38428ab23a1ec1f6ee22b976189d7e9da9b9167.tar.gz gpt4free-f38428ab23a1ec1f6ee22b976189d7e9da9b9167.tar.bz2 gpt4free-f38428ab23a1ec1f6ee22b976189d7e9da9b9167.tar.lz gpt4free-f38428ab23a1ec1f6ee22b976189d7e9da9b9167.tar.xz gpt4free-f38428ab23a1ec1f6ee22b976189d7e9da9b9167.tar.zst gpt4free-f38428ab23a1ec1f6ee22b976189d7e9da9b9167.zip |
Diffstat (limited to 'g4f/Provider/Mhystical.py')
-rw-r--r-- | g4f/Provider/Mhystical.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/g4f/Provider/Mhystical.py b/g4f/Provider/Mhystical.py index 44b32604..2aa98ebc 100644 --- a/g4f/Provider/Mhystical.py +++ b/g4f/Provider/Mhystical.py @@ -18,6 +18,8 @@ from .helper import format_prompt """ +logger = logging.getLogger(__name__) + class Mhystical(AsyncGeneratorProvider, ProviderModelMixin): url = "https://api.mhystical.cc" api_endpoint = "https://api.mhystical.cc/v1/completions" @@ -84,5 +86,5 @@ class Mhystical(AsyncGeneratorProvider, ProviderModelMixin): message_content = json_response["choices"][0]["message"]["content"] return message_content except (KeyError, IndexError, json.JSONDecodeError) as e: - logging.error("Error parsing response: %s", e) - return "Error: Failed to parse response from API."
\ No newline at end of file + logger.error("Error parsing response: %s", e) + return "Error: Failed to parse response from API." |