summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-10-20 11:44:17 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-10-20 11:44:17 +0200
commit7cd2b8cd14965cc9b03478f77c3e6f111cb0f769 (patch)
tree00ab0d95adddcfdc15cf582605b9b78764c088d0 /g4f
parentfeat(g4f/Provider/Blackbox.py): add RepoMap model and agent mode support (diff)
downloadgpt4free-7cd2b8cd14965cc9b03478f77c3e6f111cb0f769.tar
gpt4free-7cd2b8cd14965cc9b03478f77c3e6f111cb0f769.tar.gz
gpt4free-7cd2b8cd14965cc9b03478f77c3e6f111cb0f769.tar.bz2
gpt4free-7cd2b8cd14965cc9b03478f77c3e6f111cb0f769.tar.lz
gpt4free-7cd2b8cd14965cc9b03478f77c3e6f111cb0f769.tar.xz
gpt4free-7cd2b8cd14965cc9b03478f77c3e6f111cb0f769.tar.zst
gpt4free-7cd2b8cd14965cc9b03478f77c3e6f111cb0f769.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/Airforce.py4
-rw-r--r--g4f/models.py8
2 files changed, 1 insertions, 11 deletions
diff --git a/g4f/Provider/Airforce.py b/g4f/Provider/Airforce.py
index ac2b48fa..015766f4 100644
--- a/g4f/Provider/Airforce.py
+++ b/g4f/Provider/Airforce.py
@@ -81,7 +81,6 @@ class Airforce(AsyncGeneratorProvider, ProviderModelMixin):
'flux-pixel',
'flux-4o',
'any-dark',
- 'dall-e-3',
]
models = [
@@ -153,7 +152,7 @@ class Airforce(AsyncGeneratorProvider, ProviderModelMixin):
if seed is None:
seed = random.randint(0, 100000)
- prompt = messages[0]['content']
+ prompt = messages[-1]['content']
async with ClientSession(headers=headers) as session:
params = {
@@ -226,7 +225,6 @@ class Airforce(AsyncGeneratorProvider, ProviderModelMixin):
content = json_data['choices'][0]['message']['content']
part_response = content
- # Видаляємо повідомлення про перевищення ліміту символів
part_response = re.sub(
r"One message exceeds the \d+chars per message limit\..+https:\/\/discord\.com\/invite\/\S+",
'',
diff --git a/g4f/models.py b/g4f/models.py
index e84f9103..3998027e 100644
--- a/g4f/models.py
+++ b/g4f/models.py
@@ -1,4 +1,3 @@
-# g4f/models.py
from __future__ import annotations
from dataclasses import dataclass
@@ -829,12 +828,6 @@ dalle_2 = Model(
best_provider = NexraDallE2
)
-dalle_3 = Model(
- name = 'dalle-3',
- base_provider = 'OpenAI',
- best_provider = Airforce
-
-)
dalle = Model(
name = 'dalle',
@@ -1124,7 +1117,6 @@ class ModelUtils:
### OpenAI ###
'dalle': dalle,
'dalle-2': dalle_2,
-'dalle-3': dalle_3,
'dalle-mini': dalle_mini,