summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Vercel.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2023-09-12 11:37:20 +0200
committerGitHub <noreply@github.com>2023-09-12 11:37:20 +0200
commitcf7ba76e7eb27a3e62bea900f5f7fbd3381783ba (patch)
tree0a1f1eb3639c34472884d8d3d7bd102b12c891ff /g4f/Provider/Vercel.py
parent~ | 0.0.2.8 (diff)
parentDisable not working providers: (diff)
downloadgpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar.gz
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar.bz2
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar.lz
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar.xz
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar.zst
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.zip
Diffstat (limited to 'g4f/Provider/Vercel.py')
-rw-r--r--g4f/Provider/Vercel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/Vercel.py b/g4f/Provider/Vercel.py
index b0e1d8af..79bcf3f4 100644
--- a/g4f/Provider/Vercel.py
+++ b/g4f/Provider/Vercel.py
@@ -55,7 +55,7 @@ class Vercel(AsyncProvider):
def _create_payload(model: str, messages: list[dict[str, str]]) -> dict[str, Any]:
if model not in model_info:
- raise RuntimeError(f'Model "{model}" are not supported')
+ raise ValueError(f'Model are not supported: {model}')
default_params = model_info[model]["default_params"]
return {
"messages": messages,