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

ChainCallOption does not have JSON mode #1066

Open
Anil8753 opened this issue Nov 14, 2024 · 0 comments
Open

ChainCallOption does not have JSON mode #1066

Anil8753 opened this issue Nov 14, 2024 · 0 comments

Comments

@Anil8753
Copy link

Anil8753 commented Nov 14, 2024

I am using googleai.
I see following is available

opts:= []llms.CallOption{
    llms.WithJSONMode(),
}

But missing in chain

opts := []chains.ChainCallOption{
   chains.WithJSONMode(), // not present
}

chains.Run(
		ctx,
		llmChain,
		query,
		opts...,
	)

How to setup JSON mode with chains. I am trying to use chains.Run call.

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

No branches or pull requests

1 participant