Closed
Description
Currently, LitellmModel does not support passing extra headers. Since the models I am trying to access is behind a proxy, I need to pass extra headers for authorizartion
Something like this
from agents import Agent, Runner
from agents.extensions.models.litellm_model import LitellmModel
agent = Agent(name=name,
instructions=instructions,
model=LitellmModel(
model=MODEL_NAME,
base_url=base_url,
api_key=api_key,
extra_headers=headers
),
)
res = await Runner.run(agent, input)