spring-ai
spring-ai copied to clipboard
An Application Framework for AI Engineering
The extraBody field was being lost when merging OpenAiChatOptions into ChatCompletionRequest using ModelOptionsUtils.merge(). This fix ensures that extraBody parameters (like top_k, repetition_penalty, etc.) are properly preserved during the merge operation....
Closes gh-2133 Signed-off-by: Marzouki-Sami [email protected] Thank you for taking time to contribute this pull request! You might have already read the [contributor guide][1], but as a reminder, please make sure...
Simplify the `createRequest` method when merging options properties in `OpenAiAudioSpeechModel` and `OpenAiAudioTranscriptionModel`.
## Request Please consider adding support for configuring BedrockCacheOptions via application configuration properties. ## Description At present, cache options for Bedrock—specifically BedrockCacheOptions and its underlying properties such as strategy—cannot be...
### Expected Behavior I would like Spring AI to support the Anthropic Claude models available on the Google Vertex platform, allowing seamless access to these models through Google Vertex. ###...
How to reject certain tool calling requests in the process of using [User-Controlled Tool Execution](https://docs.spring.io/spring-ai/reference/api/tools.html#_user_controlled_tool_execution). ```java import lombok.RequiredArgsConstructor; import org.springframework.ai.chat.client.ChatClient; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.model.ChatResponse; import org.springframework.ai.chat.model.Generation; import org.springframework.ai.chat.prompt.Prompt; import org.springframework.ai.model.tool.ToolCallingChatOptions;...
**Summary** Introduces Spring Boot auto-configuration for customizable Jackson ObjectMapper instances used throughout Spring AI, addressing JSON parsing issues with LLM-generated content. **Key Changes** - Added new spring-ai-autoconfigure-json-parser module with auto-configuration...
config: ``` spring.ai: model: chat: ollama ollama: base-url: http://xxx:11434 chat: options: model: qwen3:32b temperature: 0 ``` question: print python Code snippet helloworld outstream : print("hello world") Expected. \```\n\n print ("hello...
## Expected Behavior Spring AI should support the **TOON** format as a serialization option when sending structured data to LLM models. Example usage: ```java ExampleObject exampleObject = new ExampleObject(); String...