summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/needs_auth/Raycast.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2024-11-15 11:58:58 +0100
committerTekky <98614666+xtekky@users.noreply.github.com>2024-11-15 11:58:58 +0100
commit6ac545445a6abd80b5e664165442f3eccef8dd24 (patch)
tree4742a90026cb797a5f862c099523935e3659e83b /g4f/Provider/needs_auth/Raycast.py
parentAi4Chat not working (diff)
downloadgpt4free-6ac545445a6abd80b5e664165442f3eccef8dd24.tar
gpt4free-6ac545445a6abd80b5e664165442f3eccef8dd24.tar.gz
gpt4free-6ac545445a6abd80b5e664165442f3eccef8dd24.tar.bz2
gpt4free-6ac545445a6abd80b5e664165442f3eccef8dd24.tar.lz
gpt4free-6ac545445a6abd80b5e664165442f3eccef8dd24.tar.xz
gpt4free-6ac545445a6abd80b5e664165442f3eccef8dd24.tar.zst
gpt4free-6ac545445a6abd80b5e664165442f3eccef8dd24.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/needs_auth/Raycast.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/g4f/Provider/needs_auth/Raycast.py b/g4f/Provider/needs_auth/Raycast.py
index 07abeda3..b8ec5a97 100644
--- a/g4f/Provider/needs_auth/Raycast.py
+++ b/g4f/Provider/needs_auth/Raycast.py
@@ -16,6 +16,11 @@ class Raycast(AbstractProvider):
needs_auth = True
working = True
+ models = [
+ "gpt-3.5-turbo",
+ "gpt-4"
+ ]
+
@staticmethod
def create_completion(
model: str,
@@ -25,6 +30,9 @@ class Raycast(AbstractProvider):
**kwargs,
) -> CreateResult:
auth = kwargs.get('auth')
+ if not auth:
+ raise ValueError("Raycast needs an auth token, pass it with the `auth` parameter")
+
headers = {
'Accept': 'application/json',
'Accept-Language': 'en-US,en;q=0.9',