[GH-ISSUE #4169] [BUG]: Azure OpenAI + @agent 400 Invalid Error in version 1.8.3 and 1.8.4 #2655

Closed
opened 2026-02-22 18:30:38 -05:00 by yindo · 1 comment
Owner

Originally created by @ridvan70 on GitHub (Jul 17, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4169

How are you running AnythingLLM?

AnythingLLM desktop app for Windows x86

What happened?

Using Azure OpenAI with an agent causes the following error, since version 1.8.3 (same with 1.8.4) :

Could not respond to message.
400 Invalid 'functions[6].name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_\.-]+$'.

Screenshot from Desktop app:

Image

Logs from the MCP Server:

anythingllm-mcp-server-log.txt

Are there known steps to reproduce?

  1. Add Azure OpenAI as LLM provider
  2. Add an MCP Server in Agent Skills
  3. Use the agent within the workspace using Azure OpenAI
Originally created by @ridvan70 on GitHub (Jul 17, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4169 ### How are you running AnythingLLM? AnythingLLM desktop app for Windows x86 ### What happened? Using Azure OpenAI with an agent causes the following error, since version 1.8.3 (same with 1.8.4) : ``` Could not respond to message. 400 Invalid 'functions[6].name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_\.-]+$'. ``` ## Screenshot from Desktop app: <img width="1222" height="918" alt="Image" src="https://github.com/user-attachments/assets/e8e50d59-f8b3-4588-90c2-649f29da137b" /> ## Logs from the MCP Server: [anythingllm-mcp-server-log.txt](https://github.com/user-attachments/files/21297137/anythingllm-mcp-server-log.txt) ### Are there known steps to reproduce? 1. Add Azure OpenAI as LLM provider 2. Add an MCP Server in Agent Skills 3. Use the agent within the workspace using Azure OpenAI
yindo added the possible bug label 2026-02-22 18:30:38 -05:00
yindo closed this issue 2026-02-22 18:30:38 -05:00
Author
Owner

@ridvan70 commented on GitHub (Jul 17, 2025):

Closing.

It is an issue at the MCP Server side: The function name "Ask question to LeanIX" is invalid

Seen in AnythingLLM desktop stdio logs:

[backend] info: [AgentHandler] Attached MCP::LeanIX:Ask question to LeanIX MCP tool to Agent cluster
[backend] error:    error: 400 Invalid 'functions[6].name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_\.-]+$'. Error: 400 Invalid 'functions[6].name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_\.-]+$'.
@ridvan70 commented on GitHub (Jul 17, 2025): Closing. It is an issue at the MCP Server side: The function name "Ask question to LeanIX" is invalid Seen in AnythingLLM desktop stdio logs: ``` [backend] info: [AgentHandler] Attached MCP::LeanIX:Ask question to LeanIX MCP tool to Agent cluster [backend] error: error: 400 Invalid 'functions[6].name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_\.-]+$'. Error: 400 Invalid 'functions[6].name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_\.-]+$'. ```
yindo changed title from [BUG]: Azure OpenAI + @agent 400 Invalid Error in version 1.8.3 and 1.8.4 to [GH-ISSUE #4169] [BUG]: Azure OpenAI + @agent 400 Invalid Error in version 1.8.3 and 1.8.4 2026-06-05 14:47:45 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2655