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

目前版本有支持APIChain吗? #26

Closed
unrulpkk opened this issue Jul 2, 2023 · 1 comment
Closed

目前版本有支持APIChain吗? #26

unrulpkk opened this issue Jul 2, 2023 · 1 comment

Comments

@unrulpkk
Copy link

unrulpkk commented Jul 2, 2023

langchain一个重要功能就是可以根据文档来访问API,这个有吗?

HamaWhiteGG added a commit that referenced this issue Jul 17, 2023
HamaWhiteGG added a commit that referenced this issue Jul 17, 2023
@HamaWhiteGG
Copy link
Owner

I just finished the API chains. You can check the ApiChainExample

var llm = OpenAI.builder().temperature(0).build().init();

var chain = ApiChain.fromLlmAndApiDocs(llm, OPEN_METEO_DOCS);
var result = chain.run("What is the weather like right now in Hangzhou, China in degrees Fahrenheit?");

// The current temperature in Hangzhou, China is 79.8°F with a windSpeed of 7.4 km/h and a wind direction of 133°.
println(result);

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

2 participants