You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I’ve Confirmed
The Together AI API is fully working — I tested /v1/chat/completions with the model meta-llama/Llama-3.3-70B-Instruct-Turbo and received a valid completion.
Environment variables are correct.
The bug only occurs when trying to fetch the model list from the CrewAI UI.
Likely Cause
Together AI’s /v1/models endpoint returns a dictionary with string keys, not an array. It looks something like:
json
{
"data": {
"meta-llama/Llama-3.3-70B-Instruct-Turbo": {...},
...
}
}
It seems CrewAI assumes the response is indexable like an array, causing the type error.
Let me know if you’d like logs or a sample API response. Thanks for the great tool — just hoping to help make Together AI integration smoother!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi CrewAI team,
I'm encountering a bug when trying to set up a custom openai-compatible connection using Together AI.
Bug Description
When I click the “Fetch Available Models” button after setting the following environment variables:
OPENAI_API_KEY=tgp_v1_...
OPENAI_API_BASE=https://api.together.xyz/v1
…I get the following error:
no implicit conversion of String into Integer
What I’ve Confirmed
The Together AI API is fully working — I tested /v1/chat/completions with the model meta-llama/Llama-3.3-70B-Instruct-Turbo and received a valid completion.
Environment variables are correct.
The bug only occurs when trying to fetch the model list from the CrewAI UI.
Likely Cause
Together AI’s /v1/models endpoint returns a dictionary with string keys, not an array. It looks something like:
json
{
"data": {
"meta-llama/Llama-3.3-70B-Instruct-Turbo": {...},
...
}
}
It seems CrewAI assumes the response is indexable like an array, causing the type error.
Let me know if you’d like logs or a sample API response. Thanks for the great tool — just hoping to help make Together AI integration smoother!
Best,
Naim
Beta Was this translation helpful? Give feedback.
All reactions