When using Together model, is openai required?

I’m trying to use Together model from agno.models.together and I get the error:

ImportError(“openai not installed. Please install using pip install openai”)

code:
model=Together(id=“Meta Llama 3.3 70B Instruct Turbo Free”)

what does installing OpenAI has to do with accessing llama model through TOGETHERAI?

Hey @Dhanush

Yes, installing the openai package is necessary when using the Together model from agno.models.together. This is because Together AI’s API is designed to be compatible with OpenAI’s API, allowing seamless integration of Together AI’s models into applications built for OpenAI’s services. Therefore, the agno.models.together module depends on the openai package to interface with Together AI’s models.

Thank you for answering!

1 Like