langchain4j-examples icon indicating copy to clipboard operation
langchain4j-examples copied to clipboard

Have a question about importing dependencies in my Maven project.

Open rrrxxxvvv opened this issue 1 year ago • 3 comments

I followed the tutorials in the pom.xml file of the tutorial (https://github.com/langchain4j/langchain4j-examples/blob/main/tutorials/pom.xml) and imported the following dependencies of version v0.27.1 into my Maven project's pom.xml file:

<dependency>
    <groupId>dev.langchain4j</groupId>
    <artifactId>langchain4j</artifactId>
    <version>0.27.1</version>
</dependency>

<dependency>
    <groupId>dev.langchain4j</groupId>
    <artifactId>langchain4j-open-ai</artifactId>
    <version>0.27.1</version>
</dependency>

<dependency>
    <groupId>dev.langchain4j</groupId>
    <artifactId>langchain4j-embeddings-all-minilm-l6-v2</artifactId>
    <version>0.27.1</version>
</dependency>

But when trying to use import static dev.langchain4j.model.openai.OpenAiChatModelName.GPT_3_5_TURBO; as in langchain4j-examples/tutorials/src/main/java/_01_ModelParameters.java

IDE tells me

"cannot resolve symbol 'OpenAiChatModelName."

I don't know which dependency I should add again.

rrrxxxvvv avatar Mar 01 '24 09:03 rrrxxxvvv