Comments (4)
Some other community member bumped into this issue as well. In short, gpt-4o doesnt quite follow the function calling input.
Here's the solution:
"Tool Agent + gpt4o, where it would sometimes use "query" as input key, where the system expects "input" as input key. The solution for me was adding: Please ensure that when calling this tool, the input key MUST always be "input".
to each tool description and adding When calling any tool, the input key MUST always be "input".
to the priming instructions on Tool Agent. Hope this helps for you as well."
from flowise.
Hi @AlehandroL, I don't really understand the problem you're facing and I can't replicate it.
- In LangSmith our code 9 months ago we already using "inputs".
- In Retriever Tool our code 4 months ago we already using "inputs".
This is my chatflow:
These are my sample data:
Could you share your custom tool to me? so I can debug further.
from flowise.
Some other community member bumped into this issue as well. In short, gpt-4o doesnt quite follow the function calling input.
This is the problem I tried (poorly) to describe.
The solution on the side of descriptions seems to work in many cases, but I think you could catch this error and try to look for the “query” parameter in the output of the LLM. I know it’s not ideal, but considering that GPT-4o today is (arguably) the most popular model, it’s worth considering a solution for this issue.
from flowise.
added a potential fix - #2679, closing for now
from flowise.
Related Issues (20)
- [FEATURE] Add Markdown and Folder with Files loaders to the document store. HOT 2
- [BUG] State Memory Override config not working HOT 2
- [QUESTION] Multiple RAG sources? HOT 1
- [BUG] Vectara chat didn't work both using Vectara QA chain and Conversational Retrieval QA Chain HOT 6
- Update 'Deploy to Elestio' button to newer version
- [BUG] "Error: End of data reached" returned when using Upset API to upsert documents HOT 2
- [BUG] Chatflow Agent hangs on Groq LLM query, requires manual chat window refresh to display response HOT 3
- [BUG] Receiving: Error buildAgentGraph - TypeError: Cannot read properties of undefined (reading 'includes') after including Conditional Agent. HOT 1
- [BUG] Error after upgrading to Flowise v2.0.5 with Milvus failing HOT 2
- [FEATURE] Let ChatLocalAI 'Allow Image Uploads'
- [FEATURE] Add "base path" to Azure OpenAI embeddings node HOT 3
- [BUG] Flowise Cloud Timeout limit issue HOT 1
- [BUG] Error occurs in all chatflows and agentflows: Cannot read properties of undefined (reading 'length') HOT 6
- [BUG] Error: Returned message history must be an array HOT 3
- [FEATURE] Support gpt-4o-mini model for Azure Open AI HOT 2
- Does flowise support high-availability deployments? HOT 1
- [BUG] Chain Tool and LLM Chain not working together. HOT 1
- [BUG]After configuring the Azure OpenAI model as instructed, unable to successfully invoke GPT. HOT 3
- [BUG]Buffer Memory not available? HOT 2
- [BUG] Report a critical vulnerability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowise.