diff options
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/Airforce.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/g4f/Provider/Airforce.py b/g4f/Provider/Airforce.py index e7907cec..015766f4 100644 --- a/g4f/Provider/Airforce.py +++ b/g4f/Provider/Airforce.py @@ -17,9 +17,7 @@ class Airforce(AsyncGeneratorProvider, ProviderModelMixin): working = True default_model = 'llama-3-70b-chat' - - supports_gpt_35_turbo = True - supports_gpt_4 = True + supports_stream = True supports_system_message = True supports_message_history = True @@ -83,7 +81,6 @@ class Airforce(AsyncGeneratorProvider, ProviderModelMixin): 'flux-pixel', 'flux-4o', 'any-dark', - 'dall-e-3', ] models = [ @@ -155,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 = { @@ -228,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+", '', |