Welcome to Portkey Forum

Updated 2 months ago

CrewAI

At a glance
Hi, I followed the instructions for using Portkey with CrewAI and Python here https://portkey.ai/docs/integrations/agents/crewai#crewai, but the events aren't coming through. Any debugging tips?
V
P
12 comments
Hi @Paul Cowgill are your calls succeeding?
They're succeeding in the OpenAI API, just not getting recorded in Portkey
Would it be possible to share the code snippet where you’re making the request? Are you using our hosted API?
I think I'm using your hosted API, just using the default install instructions
Plain Text
agent_llm = ChatOpenAI(
    model=DEFAULT_LLM,
    api_key=OPENAI_API_KEY,
    base_url=PORTKEY_GATEWAY_URL,
    default_headers=createHeaders(
        api_key=PORTKEY_API_KEY,
        #virtual_key=PORTKEY_VIRTUAL_OPENAI_API_KEY
    )
)
DEFAULT_LLM = "gpt-3.5-turbo"
I tried virtual before, but it's commented out for now
@Paul Cowgill could we get on a very short quick call?
I'll DM you a Zoom link
Just coming in to say - this is now resolved, and we’ll update our CrewAI docs to reflect the change!
Add a reply
Sign up and join the conversation on Discord