StefanBratanov / jvm-openai

A minimalistic OpenAI API client for the JVM, written in Java 🤖
Apache License 2.0
35 stars 8 forks source link

ChatMessage.systemMessage or Any Other ChatMessage.*Message #1

Closed iprovalo closed 5 months ago

iprovalo commented 5 months ago

@StefanBratanov great work on this project!

Are these ChatMessage.userMessage, etc.., constructor helpers you use in your examples meant to be package-private only?

I cannot call them outside the package: io.github.stefanbratanov.jvm.openai.

StefanBratanov commented 5 months ago

Hi @iprovalo

Static methods in an interface are implicitly public, so you should be able to call them. I have tested using the library in a separate project and it works.

What is your setup?

iprovalo commented 5 months ago

@StefanBratanov it was a user error :-) I must have imported the wrong class.

Thank you for a quick response!

StefanBratanov commented 5 months ago

Awesome. Happy to see someone use the library. :) Will close this issue now.