open-ai-examples can't run #1128
techgeniuswang
started this conversation in
General
Replies: 1 comment 2 replies
-
Hi, I am not sure what is the problem, did not check it yet, but you can always use a string model name: ChatLanguageModel model = OpenAiChatModel.builder()
.apiKey(System.getenv("OPENAI_API_KEY")) // Please use your own OpenAI API key
.modelName("gpt-4-vision-preview")
.maxTokens(50)
.build(); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Gurus
I downloaded example code from https://github.com/langchain4j/langchain4j-examples
But met an error around "import static dev.langchain4j.model.openai.OpenAiChatModelName.GPT_4_VISION_PREVIEW;"
Do I missed something??? Any idea?
Beta Was this translation helpful? Give feedback.
All reactions