summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Koala.py
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-08-31 08:47:39 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-08-31 08:47:39 +0200
commitf1683c8db83cee5805a6e103fca2c2551aae5086 (patch)
tree44712b453191566e7ce0877d43a3ed2f807d78b6 /g4f/Provider/Koala.py
parentMerge pull request #2206 from Parthsadaria/patch-1 (diff)
downloadgpt4free-f1683c8db83cee5805a6e103fca2c2551aae5086.tar
gpt4free-f1683c8db83cee5805a6e103fca2c2551aae5086.tar.gz
gpt4free-f1683c8db83cee5805a6e103fca2c2551aae5086.tar.bz2
gpt4free-f1683c8db83cee5805a6e103fca2c2551aae5086.tar.lz
gpt4free-f1683c8db83cee5805a6e103fca2c2551aae5086.tar.xz
gpt4free-f1683c8db83cee5805a6e103fca2c2551aae5086.tar.zst
gpt4free-f1683c8db83cee5805a6e103fca2c2551aae5086.zip
Diffstat (limited to 'g4f/Provider/Koala.py')
-rw-r--r--g4f/Provider/Koala.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/g4f/Provider/Koala.py b/g4f/Provider/Koala.py
index 6b2d02c3..0e810083 100644
--- a/g4f/Provider/Koala.py
+++ b/g4f/Provider/Koala.py
@@ -4,16 +4,17 @@ import json
from typing import AsyncGenerator, Optional, List, Dict, Union, Any
from aiohttp import ClientSession, BaseConnector, ClientResponse
-from ..typing import Messages
-from .base_provider import AsyncGeneratorProvider
+from ..typing import AsyncResult, Messages
+from .base_provider import AsyncGeneratorProvider, ProviderModelMixin
from .helper import get_random_string, get_connector
from ..requests import raise_for_status
-class Koala(AsyncGeneratorProvider):
+class Koala(AsyncGeneratorProvider, ProviderModelMixin):
url = "https://koala.sh"
working = True
- supports_gpt_35_turbo = True
supports_message_history = True
+ supports_gpt_4 = True
+ default_model = 'gpt-4o-mini'
@classmethod
async def create_async_generator(