summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/MetaAI.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2024-07-11 20:03:13 +0200
committerGitHub <noreply@github.com>2024-07-11 20:03:13 +0200
commit31edda55f75b85651998bc0a77f22e538accaa1f (patch)
treecfb769c3569449780c9edc5073eb47180e60655d /g4f/Provider/MetaAI.py
parentMerge pull request #2097 from gamelist1990/main (diff)
parentUpdate g4f/models.py (diff)
downloadgpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar
gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar.gz
gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar.bz2
gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar.lz
gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar.xz
gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.tar.zst
gpt4free-31edda55f75b85651998bc0a77f22e538accaa1f.zip
Diffstat (limited to 'g4f/Provider/MetaAI.py')
-rw-r--r--g4f/Provider/MetaAI.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/g4f/Provider/MetaAI.py b/g4f/Provider/MetaAI.py
index caed7778..f1ef348a 100644
--- a/g4f/Provider/MetaAI.py
+++ b/g4f/Provider/MetaAI.py
@@ -12,7 +12,7 @@ from ..typing import AsyncResult, Messages, Cookies
from ..requests import raise_for_status, DEFAULT_HEADERS
from ..image import ImageResponse, ImagePreview
from ..errors import ResponseError
-from .base_provider import AsyncGeneratorProvider
+from .base_provider import AsyncGeneratorProvider, ProviderModelMixin
from .helper import format_prompt, get_connector, format_cookies
class Sources():
@@ -25,10 +25,11 @@ class Sources():
class AbraGeoBlockedError(Exception):
pass
-class MetaAI(AsyncGeneratorProvider):
+class MetaAI(AsyncGeneratorProvider, ProviderModelMixin):
label = "Meta AI"
url = "https://www.meta.ai"
working = True
+ default_model = ''
def __init__(self, proxy: str = None, connector: BaseConnector = None):
self.session = ClientSession(connector=get_connector(connector, proxy), headers=DEFAULT_HEADERS)
@@ -234,4 +235,4 @@ def generate_offline_threading_id() -> str:
# Combine timestamp and random value
threading_id = (timestamp << 22) | (random_value & ((1 << 22) - 1))
- return str(threading_id) \ No newline at end of file
+ return str(threading_id)