diff options
author | kqlio67 <kqlio67@users.noreply.github.com> | 2024-10-22 11:35:30 +0200 |
---|---|---|
committer | kqlio67 <kqlio67@users.noreply.github.com> | 2024-10-22 11:35:30 +0200 |
commit | bdf9db27a7e3b231354b50248321fe25873703f2 (patch) | |
tree | 4f85b9c164a227225c5d2dd4dc1ea406c97b30cb /g4f/Provider/nexra/NexraDallE.py | |
parent | Updated provider (g4f/Provider/nexra/NexraDallE.py) (diff) | |
download | gpt4free-bdf9db27a7e3b231354b50248321fe25873703f2.tar gpt4free-bdf9db27a7e3b231354b50248321fe25873703f2.tar.gz gpt4free-bdf9db27a7e3b231354b50248321fe25873703f2.tar.bz2 gpt4free-bdf9db27a7e3b231354b50248321fe25873703f2.tar.lz gpt4free-bdf9db27a7e3b231354b50248321fe25873703f2.tar.xz gpt4free-bdf9db27a7e3b231354b50248321fe25873703f2.tar.zst gpt4free-bdf9db27a7e3b231354b50248321fe25873703f2.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/nexra/NexraDallE.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/Provider/nexra/NexraDallE.py b/g4f/Provider/nexra/NexraDallE.py index 7b3ac388..dad1d057 100644 --- a/g4f/Provider/nexra/NexraDallE.py +++ b/g4f/Provider/nexra/NexraDallE.py @@ -24,6 +24,7 @@ class NexraDallE(AbstractProvider, ProviderModelMixin): cls, model: str, messages: Messages, + response: str = "url", # base64 or url **kwargs ) -> CreateResult: model = cls.get_model(model) @@ -35,7 +36,7 @@ class NexraDallE(AbstractProvider, ProviderModelMixin): data = { "prompt": messages[-1]["content"], "model": model, - "response": "url" + "response": response } response = requests.post(cls.api_endpoint, headers=headers, json=data) |