vercel-llm-api icon indicating copy to clipboard operation
vercel-llm-api copied to clipboard

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

Open selfsff opened this issue 1 year ago • 2 comments

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'

selfsff avatar May 15 '24 19:05 selfsff

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

ading2210 avatar May 15 '24 21:05 ading2210

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

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

metimol avatar May 31 '24 15:05 metimol