cohere-ai / cohere-python

Python Library for Accessing the Cohere API
https://docs.cohere.ai
MIT License
302 stars 65 forks source link

tokenize() got an unexpected keyword argument 'model' #252

Open PeterTF656 opened 1 year ago

PeterTF656 commented 1 year ago

using cohere python 4.11.2:

response = co.tokenize(
  text=text,
  model='embed-multilingual-v2.0'
)
print(response.tokens)

Error:

tokenize() got an unexpected keyword argument 'model'
murdadesmaeeli commented 11 months ago

@PeterTF656 , this shouldn't happen, as I looked at the code. Could you check if it is still happening?