Hi guys, im struggling a little to use cohere on your platform. Fireworks works fine, but when I made a cohere virtual key it stops working.
For example, to create a prompt when I use fireworks it shows me all the models, but when I use cohere it throws an error saying "no foundation models available"
Similarly, when I try to create embeddings using cohere + explicitly naming the model I want to use, it gives me an error as well:
openai.BadRequestError: Error code: 400 - {'error': {'message': 'cohere error: invalid request: valid input_type must be provided with the provided model', 'type': None, 'param': None, 'code': None}, 'provider': 'cohere'}
This is how im using the library to generate embeddings:
...
async def create_embedding(self, input: Union[str, List[str]], model: str):
return await self._client.embeddings.create(input=input, model=model)
...
#USAGE
client = create_portkey_fireworks_client(client_type="sync", provider="cohere")
input = ["I am happy", "I am sad"]
x = client.create_embedding(input, model="embed-multilingual-v3.0")
print(x)
Please let me know what im doing wrong :/