diff options
author | Heiner Lohaus <heiner@lohaus.eu> | 2023-09-12 00:47:03 +0200 |
---|---|---|
committer | Heiner Lohaus <heiner@lohaus.eu> | 2023-09-12 00:47:03 +0200 |
commit | d6382a2145e7e1c90b3795e3116e3c574e787868 (patch) | |
tree | 52e10e6314c9b9643ac91171dce58d5273cca575 /g4f/Provider/Vercel.py | |
parent | ~ | 0.0.2.8 (diff) | |
download | gpt4free-d6382a2145e7e1c90b3795e3116e3c574e787868.tar gpt4free-d6382a2145e7e1c90b3795e3116e3c574e787868.tar.gz gpt4free-d6382a2145e7e1c90b3795e3116e3c574e787868.tar.bz2 gpt4free-d6382a2145e7e1c90b3795e3116e3c574e787868.tar.lz gpt4free-d6382a2145e7e1c90b3795e3116e3c574e787868.tar.xz gpt4free-d6382a2145e7e1c90b3795e3116e3c574e787868.tar.zst gpt4free-d6382a2145e7e1c90b3795e3116e3c574e787868.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/Vercel.py | 2 |
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, |