summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/nexra/NexraChatGPT.py
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-10-21 20:45:40 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-10-21 20:45:40 +0200
commit7c666082bdccb2c0e4b90a4740f7e48c4f4bf478 (patch)
tree933f86b1487ce45584e0f879e688c75f2db45198 /g4f/Provider/nexra/NexraChatGPT.py
parentRestored provider (g4f/Provider/nexra/NexraChatGPT4o.py) (diff)
downloadgpt4free-7c666082bdccb2c0e4b90a4740f7e48c4f4bf478.tar
gpt4free-7c666082bdccb2c0e4b90a4740f7e48c4f4bf478.tar.gz
gpt4free-7c666082bdccb2c0e4b90a4740f7e48c4f4bf478.tar.bz2
gpt4free-7c666082bdccb2c0e4b90a4740f7e48c4f4bf478.tar.lz
gpt4free-7c666082bdccb2c0e4b90a4740f7e48c4f4bf478.tar.xz
gpt4free-7c666082bdccb2c0e4b90a4740f7e48c4f4bf478.tar.zst
gpt4free-7c666082bdccb2c0e4b90a4740f7e48c4f4bf478.zip
Diffstat (limited to 'g4f/Provider/nexra/NexraChatGPT.py')
-rw-r--r--g4f/Provider/nexra/NexraChatGPT.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/Provider/nexra/NexraChatGPT.py b/g4f/Provider/nexra/NexraChatGPT.py
index b9592aac..4039c17e 100644
--- a/g4f/Provider/nexra/NexraChatGPT.py
+++ b/g4f/Provider/nexra/NexraChatGPT.py
@@ -56,6 +56,7 @@ class NexraChatGPT(AbstractProvider, ProviderModelMixin):
cls,
model: str,
messages: Messages,
+ markdown: bool = False,
**kwargs
) -> CreateResult:
model = cls.get_model(model)
@@ -68,7 +69,7 @@ class NexraChatGPT(AbstractProvider, ProviderModelMixin):
"messages": [],
"prompt": format_prompt(messages),
"model": model,
- "markdown": False
+ "markdown": markdown
}
response = requests.post(cls.api_endpoint, headers=headers, json=data)