simple-openai icon indicating copy to clipboard operation
simple-openai copied to clipboard

Conversation2Demo gives a file path error on Windows

Open akulyakhtin opened this issue 9 months ago • 6 comments

Run Conversation2Demo on windows (I've cloned the repo into G:\Code)

Observe the error:

Exception in thread "main" java.nio.file.InvalidPathException: Illegal char <:> at index 2: /G:/Code/simple-openai/src/demo/resources/mistral-ai.txt

The error happens in CleverClient in HttpMultipart.java on line 52:

Path path = Path.of((new URL((String)entry.getValue())).getPath());

Best regards, Alex

akulyakhtin avatar May 15 '24 23:05 akulyakhtin