summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/needs_auth/DeepInfraImage.py
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/Provider/needs_auth/DeepInfraImage.py')
-rw-r--r--g4f/Provider/needs_auth/DeepInfraImage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/Provider/needs_auth/DeepInfraImage.py b/g4f/Provider/needs_auth/DeepInfraImage.py
index 24df04e3..44790561 100644
--- a/g4f/Provider/needs_auth/DeepInfraImage.py
+++ b/g4f/Provider/needs_auth/DeepInfraImage.py
@@ -29,9 +29,10 @@ class DeepInfraImage(AsyncGeneratorProvider, ProviderModelMixin):
cls,
model: str,
messages: Messages,
+ prompt: str = None,
**kwargs
) -> AsyncResult:
- yield await cls.create_async(messages[-1]["content"], model, **kwargs)
+ yield await cls.create_async(messages[-1]["content"] if prompt is None else prompt, model, **kwargs)
@classmethod
async def create_async(