You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I was trying to execute the tool functionality but getting following error, Also checked code but not able to find proper point of error.
pls suggest where i am doing wrong with my flow.
Note: I have a doubt that is this tool having dependency on either gpt versions or open.ai or azure service provider?
Expected behavior
I have changed the api cred in tool code but still its giving some zod object error.
Screenshots
Error
[2.35s] Chain run errored with error: "[\n {\n "code": "invalid_type",\n "expected": "object",\n "received": "string",\n "path": [],\n "message": "Expected object, received string"\n }\n]"
2023-08-10 12:12:52 [ERROR]: [server]: Error: [
{
"code": "invalid_type",
"expected": "object",
"received": "string",
"path": [],
"message": "Expected object, received string"
}
]
ZodError: [
{
"code": "invalid_type",
"expected": "object",
"received": "string",
"path": [],
"message": "Expected object, received string"
}
]
at get error [as error] (/home/admin1/workspace/LLM/Flowise/node_modules/zod/lib/types.js:43:31)
at ZodObject.parseAsync (/home/admin1/workspace/LLM/Flowise/node_modules/zod/lib/types.js:164:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DynamicStructuredTool.call (/home/admin1/workspace/LLM/Flowise/node_modules/langchain/dist/tools/base.cjs:26:24)
at async /home/admin1/workspace/LLM/Flowise/node_modules/langchain/dist/agents/executor.cjs:104:23
at async Promise.all (index 0)
The text was updated successfully, but these errors were encountered:
Please change Conversational Agent to OpenAI Function Agent
Thanks @chungyau97 for your suggestion i tried it worked.
but i am facing issue with Azure chatopen ai model is this functionality supported by azure chat open ai as well?
Describe the bug
I was trying to execute the tool functionality but getting following error, Also checked code but not able to find proper point of error.
pls suggest where i am doing wrong with my flow.
Expected behavior
I have changed the api cred in tool code but still its giving some zod object error.
Screenshots
![image](https://private-user-images.githubusercontent.com/49556518/259655703-d837348b-70b1-4f70-a819-4db6e7c325e2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMjk3MDYsIm5iZiI6MTcyMTMyOTQwNiwicGF0aCI6Ii80OTU1NjUxOC8yNTk2NTU3MDMtZDgzNzM0OGItNzBiMS00ZjcwLWE4MTktNGRiNmU3YzMyNWUyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDE5MDMyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQzOWY3MDVkNjI1Njg1Njk2NWU1MGU0NjgwMjdhMWZmMDZmYzY0MzZkOGI2ZTk0YjMyMjM3MThhZjQ5NThmZGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HjB_gqnc8FC2ByXzO75T5oFMUQbPY36Qgnby96KHUjc)
Error
[2.35s] Chain run errored with error: "[\n {\n "code": "invalid_type",\n "expected": "object",\n "received": "string",\n "path": [],\n "message": "Expected object, received string"\n }\n]"
2023-08-10 12:12:52 [ERROR]: [server]: Error: [
{
"code": "invalid_type",
"expected": "object",
"received": "string",
"path": [],
"message": "Expected object, received string"
}
]
ZodError: [
{
"code": "invalid_type",
"expected": "object",
"received": "string",
"path": [],
"message": "Expected object, received string"
}
]
at get error [as error] (/home/admin1/workspace/LLM/Flowise/node_modules/zod/lib/types.js:43:31)
at ZodObject.parseAsync (/home/admin1/workspace/LLM/Flowise/node_modules/zod/lib/types.js:164:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DynamicStructuredTool.call (/home/admin1/workspace/LLM/Flowise/node_modules/langchain/dist/tools/base.cjs:26:24)
at async /home/admin1/workspace/LLM/Flowise/node_modules/langchain/dist/agents/executor.cjs:104:23
at async Promise.all (index 0)
The text was updated successfully, but these errors were encountered: