[GH-ISSUE #4207] [BUG]: OpenAI functions parameter deprecated in favor of tools #2678

Closed
opened 2026-02-22 18:30:45 -05:00 by yindo · 4 comments
Owner

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

How are you running AnythingLLM?

Docker (local)

What happened?

The OpenAI provider code includes the deprecated functions parameter:
https://github.com/Mintplex-Labs/anything-llm/blob/89724169dcfae3784dda8e59a4c42c15d47840f3/server/utils/agents/aibitat/providers/openai.js#L67-L74

Are there known steps to reproduce?

  1. Use OpenAI API
  2. Invoke an agent session
Originally created by @bystepii on GitHub (Jul 28, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4207 ### How are you running AnythingLLM? Docker (local) ### What happened? The OpenAI provider code includes the deprecated `functions` parameter: https://github.com/Mintplex-Labs/anything-llm/blob/89724169dcfae3784dda8e59a4c42c15d47840f3/server/utils/agents/aibitat/providers/openai.js#L67-L74 ### Are there known steps to reproduce? 1. Use OpenAI API 2. Invoke an agent session
yindo added the possible bug label 2026-02-22 18:30:45 -05:00
yindo closed this issue 2026-02-22 18:30:45 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jul 28, 2025):

What is the actual bug here? Nothing errors doing while this is deprecated - it still functions and is the same as tools

@timothycarambat commented on GitHub (Jul 28, 2025): What is the actual bug here? Nothing errors doing while this is deprecated - it still functions and is the same as `tools`
Author
Owner

@bystepii commented on GitHub (Jul 28, 2025):

@timothycarambat Some OpenAI models no longer support the functions parameter and instead require the new tools‑based interface

@bystepii commented on GitHub (Jul 28, 2025): @timothycarambat Some OpenAI models no longer support the `functions` parameter and instead require the new `tools`‑based interface
Author
Owner

@timothycarambat commented on GitHub (Jul 28, 2025):

Can you tell me which model or at least the one causing this? I just used gpt-4.1-mini with no issue and that is pretty recent. If you are using O3 that is a different issue as there are many nuances to o3 specifically #4172

@timothycarambat commented on GitHub (Jul 28, 2025): Can you tell me which model or at least the one causing this? I just used gpt-4.1-mini with no issue and that is pretty recent. If you are using O3 that is a different issue as there are many nuances to o3 specifically #4172
Author
Owner

@cyberopsbill commented on GitHub (Aug 1, 2025):

I ran into this issue as well, with o3 specifically. @timothycarambat Can you elaborate on how this is a different issue? The issue you linked doesn't provide any meaningful context for me. My initial digging into this issue seems to indicate the newer models need the currently supported roles (i.e., tool).

@cyberopsbill commented on GitHub (Aug 1, 2025): I ran into this issue as well, with o3 specifically. @timothycarambat Can you elaborate on how this is a different issue? The issue you linked doesn't provide any meaningful context for me. My initial digging into this issue seems to indicate the newer models need the currently supported roles (i.e., tool).
yindo changed title from [BUG]: OpenAI `functions` parameter deprecated in favor of `tools` to [GH-ISSUE #4207] [BUG]: OpenAI `functions` parameter deprecated in favor of `tools` 2026-06-05 14:47:55 -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#2678