Fixed #442
var openAiApi = new OpenAiApi(System.getenv("OPENAI_API_KEY"));
var chatClient = new OpenAiChatClient(openAiApi)
.withDefaultOptions(OpenAiChatOptions.builder()
.withModel("gpt-3.5-turbo") // gpt-35-turbo => gpt-3.5-turbo
.withTemperature(0.4)
.withMaxTokens(200)
.build());
ChatResponse response = chatClient.call(
new Prompt("Generate the names of 5 famous pirates."));
Comment From: abel533
I've noticed that many example codes are incorrect, which is caused by API changes. Is it necessary to fix these issues now?
Comment From: tzolov
Thanks for catching this @abel533