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

请教一下api功能的使用方式 #421

Closed
ywkf opened this issue May 31, 2023 · 3 comments
Closed

请教一下api功能的使用方式 #421

ywkf opened this issue May 31, 2023 · 3 comments

Comments

@ywkf
Copy link

ywkf commented May 31, 2023

你好,我的api好像无法起作用
使用ChatGPT“翻译中……”对话框出现几秒后就消失无事发生,使用DeepL会报错:
error: java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
StackTrace: java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)
at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)
at java.base/java.util.Objects.checkIndex(Unknown Source)
at java.base/java.util.ArrayList.get(Unknown Source)
at anywheresoftware.b4a.objects.collections.List.Get(List.java:105)
at org.xulihang.imagetrans.main$ResumableSub_batchTranslate.resume(main.java:2715)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:136)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:85)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
at anywheresoftware.b4a.keywords.Common$3.run(Common.java:1086)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
请教一下这个问题怎么解决

@ywkf
Copy link
Author

ywkf commented May 31, 2023

openai api 连接超时,但是clash全局模式其他软件是可以连接的啊

@xulihang
Copy link
Owner

clash我没用过,之前的用户用clash是可以的:#375 (comment)

@ywkf
Copy link
Author

ywkf commented Jun 1, 2023

#385 (comment)
解决了,按照这位的方法,之前应该还是没有走代理的原因
image

@xulihang xulihang closed this as completed Jun 2, 2023
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