Update openai-chat.adoc
Existing example displays a typo in the code example for Runtime Options:
ChatResponse response = chatModel.call(
new Prompt(
"Generate the names of 5 famous pirates.",
OpenAiChatOptions.builder()
.model("gpt-4-o")
.temperature(0.4)
.build()
));
Using gpt-4-0 generates this error:
org.springframework.ai.retry.NonTransientAiException: 404 - {
"error": {
"message": "The model `gpt-4-o` does not exist or you do not have access to it.",
"type": "invalid_request_error",
"param": null,
"code": "model_not_found"
}
}
Changing the model String in the example to "gpt-4o" resolves this.
This commit is contained in:
committed by
Ilayaperumal Gopinathan
parent
66e8d88815
commit
dcc91487b4
@@ -154,7 +154,7 @@ ChatResponse response = chatModel.call(
|
||||
new Prompt(
|
||||
"Generate the names of 5 famous pirates.",
|
||||
OpenAiChatOptions.builder()
|
||||
.model("gpt-4-o")
|
||||
.model("gpt-4o")
|
||||
.temperature(0.4)
|
||||
.build()
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user