Replies: 1 comment
-
@aleks-r74 This is going to be fixed as part of the next release. Take a look at #133 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys, thank you for the library!
For some reason I can't try any functionality related to file uploads.
The exception arises on line 17 in FileDemo.java: var futureFile = openAI.files().create(fileRequest);
Exception in thread "main" java.nio.file.InvalidPathException: Illegal char <:> at index 2: /Z:/openAITest/src/demo/resources/batch_request.jsonl
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:204)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:175)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:231)
at java.base/java.nio.file.Path.of(Path.java:148)
at io.github.sashirestela.cleverclient.support.HttpMultipart.toByteArrays(HttpMultipart.java:39)
at io.github.sashirestela.cleverclient.http.HttpConnector.createBodyPublisher(HttpConnector.java:98)
at io.github.sashirestela.cleverclient.http.HttpConnector.sendRequest(HttpConnector.java:55)
at io.github.sashirestela.cleverclient.http.HttpProcessor.resolve(HttpProcessor.java:120)
at io.github.sashirestela.cleverclient.http.HttpProcessor.invoke(HttpProcessor.java:79)
at jdk.proxy2/jdk.proxy2.$Proxy12.create(Unknown Source)
at FileDemo.createFile(FileDemo.java:17)
at BatchDemo.demoCallBatchCreate(BatchDemo.java:20)
at AbstractDemo.lambda$run$0(AbstractDemo.java:40)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at AbstractDemo.run(AbstractDemo.java:35)
at BatchDemo.main(BatchDemo.java:60)
Beta Was this translation helpful? Give feedback.
All reactions