-
Notifications
You must be signed in to change notification settings - Fork 223
Description
Would it be possible to also use mcphost with models running in Azure OpenAI?
It tried to run the mcphost with the following commands:
mcphost --model openai:gpt-4o --openai-url https://contoso.openai.azure.com --openai-api-key [azure openai key] --config "C:\Users\[name\OneDrive - Microsoft\Documents\local.json" --debugBut when submitting a prompt it shutdowns the mcp servers.
2025/05/08 17:41:43 INFO <cmd/root.go:495> Model loaded provider=openai model=gpt-4o
2025/05/08 17:41:43 INFO <cmd/mcp.go:262> Initializing server... name=mcp-server-vanmoof
2025/05/08 17:41:48 INFO <cmd/root.go:521> Server connected name=mcp-server-vanmoof
2025/05/08 17:41:48 INFO <cmd/root.go:543> Tools loaded server=mcp-server-vanmoof count=7
You: what is the capital of Germany
2025/05/08 17:42:02 DEBU <openai/provider.go:48> creating message prompt="what is the capital of Germany" num_messages=1 num_tools=7
2025/05/08 17:42:02 DEBU <openai/provider.go:65> converting message role=user content="what is the capital of Germany" is_tool_response=false
2025/05/08 17:42:02 DEBU <openai/provider.go:153> sending messages to OpenAI messages="[{Role:user Content:0xc000223440 ReasoningContent: FunctionCall: ToolCalls:[] Name: ToolCallID:}]" num_tools=7
2025/05/08 17:42:03 INFO <cmd/root.go:510> Shutting down MCP servers...
Would be great if I also am able to use Azure OpenAI models.
Thanks!
Stefan