How to Initialise Azure OpenAI model for MCP #449
Replies: 1 comment
-
This worked. Don't know why I can't directly include my variables into LLM config. Found the solution here
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried doing doing:
llm_config = {
"model": "gpt-4o-mini",
"api_key": os.getenv("AZURE_4OMINI_KEY"),
"base_url": os.getenv("AZURE_4OMINI_ENDPOINT"),
"api_version": os.getenv("AZURE_API_VERSION")
}
from praisonaiagents import Agent, MCP
search_agent = Agent(
instructions="""You help book apartments on Airbnb.""",
llm=llm_config,
tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt")
)
This is not working. How do I set this up?
Beta Was this translation helpful? Give feedback.
All reactions