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

请问如何在使用ApiHost的情况下,使用client设置timeout #21

Open
Passon-Z opened this issue Jan 25, 2024 · 2 comments
Open

Comments

@Passon-Z
Copy link

大佬,我看到这个方法:
public ChatGPT( String apiHost,
String apiKey,
okhttp3.OkHttpClient client,
com.fasterxml.jackson.databind.ObjectMapper objectMapper )
能不能请教一下如何使用呢?万分感谢!

@Passon-Z
Copy link
Author

以前有一个方法:
public ChatGPT( String apiHost,
String apiKey,
okhttp3.OkHttpClient client)
但是这次更新1.0.3后就没有了55555

@LiLittleCat
Copy link
Owner

LiLittleCat commented Jan 28, 2024

没有特殊的配置的话,new 一个 ObjectMapper 作为参数传进去就行了。

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