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

Can't create client AttributeError: 'list' object has no attribute 'keys' #11

Closed NehemiaR closed 1 year ago

NehemiaR commented 1 year ago

After pip installing properly I tried creating a client as described so I can further test, but immediatly I got an error:

import vercel_ai client = vercel_ai.Client()


AttributeError Traceback (most recent call last) in <cell line: 2>() 1 import vercel_ai ----> 2 client = vercel_ai.Client()

/usr/local/lib/python3.10/dist-packages/vercel_ai.py in init(self, proxy) 40 41 self.models = self.get_models() ---> 42 self.model_ids = list(self.models.keys()) 43 self.model_defaults = {} 44 for model_id in self.models:

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

Checked in Anaconda and in Google Colab, same error.

ading2210 commented 1 year ago

Duplicate of #10.