Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Facing issue in executing tool of template get_stock_movers #721

Closed
Vikson97 opened this issue Aug 10, 2023 · 3 comments
Closed

[BUG]: Facing issue in executing tool of template get_stock_movers #721

Vikson97 opened this issue Aug 10, 2023 · 3 comments
Labels
question Further information is requested

Comments

@Vikson97
Copy link

Vikson97 commented Aug 10, 2023

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
image

image

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)

@chungyau97
Copy link
Contributor

Hi @Vikson97,

Please change Conversational Agent to OpenAI Function Agent
image

@chungyau97 chungyau97 added the question Further information is requested label Aug 10, 2023
@Vikson97
Copy link
Author

Hi @Vikson97,

Please change Conversational Agent to OpenAI Function Agent image

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?

@chungyau97
Copy link
Contributor

Hi @Vikson97,

I'm not able to get Azure ChatOpenAI to work as well.

If you're experience in coding could you try to re-create this flow using coding with LangChain JS library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants