ading2210 / vercel-llm-api

A reverse engineered Python API wrapper for the Vercel AI Playground, which provides free access to many large language models without needing an account.
https://pypi.org/project/vercel-llm-api
GNU General Public License v3.0
159 stars 13 forks source link

AttributeError: 'list' object has no attribute 'keys' #25

Open selfsff opened 6 months ago

selfsff commented 6 months ago

Traceback (most recent call last): File "", line 233, in client = vercel_ai.Client() ^^^^^^^^^^^^^^^^^^ File "...\venv\Lib\site-packages\vercel_ai.py", line 43, in init self.model_ids = list(self.models.keys()) ^^^^^^^^^^^^^^^^ AttributeError: 'list' object has no attribute 'keys'

ading2210 commented 6 months ago

This library is sort of unmaintained right now, since they added an anit-bot mechanism which is tricky to reverse engineer. See #22.

Metimol1 commented 6 months ago

Here working I think. But I'm not tried it:

https://github.com/xtekky/gpt4free/blob/main/g4f%2FProvider%2FVercel.py