}
/**
* Creates a model response for the given chat conversation.
*
* @param messages A list of messages comprising the conversation so far.
* @param model ID of the model to use.
* @param frequencyPenalty Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing
* frequency in the text so far, decreasing the
https://github.com/spring-projects/spring-ai/blob/c5f35029f0fec8fec1bb4cfef59e1f9ccedde4a5/models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java#L256