spring-ai
spring-ai copied to clipboard
An Application Framework for AI Engineering
it's not critical or anything but we should probably understand it.. code: ```java package com.example.service; import org.springframework.ai.chat.ChatClient; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import org.springframework.web.servlet.function.RouterFunction; import org.springframework.web.servlet.function.ServerResponse; import java.util.Map; import...
Fixes gh-499
**Expected Behavior** The feature should enable Spring AI to manage interactions with OpenAI's [Assistant](https://platform.openai.com/docs/assistants/overview) : - **Managing Assistants**: Provide API endpoints for creating, configuring, and managing instances of Assistants, allowing...
The [Service Binding API](https://servicebinding.io) is a Kubernetes specification to automatically bind backing services to applications. In the Spring ecosystem, the [Spring Cloud Bindings](https://github.com/spring-cloud/spring-cloud-bindings) library provides convenient auto-configuration for out-of-the-box bindings...
### Discussed in https://github.com/spring-projects/spring-ai/discussions/501 Originally posted by **iAMSagar44** March 24, 2024 Currently the DocumentReader interface implementations (e.g.PagePdfDocumentReader) add the page number and file name to the metadata map. This eventually...
The use of "temperature" as a real-world example in the `*chat-functions.adoc` files ([spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/functions](https://github.com/spring-projects/spring-ai/tree/main/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/functions)) is problematic for several reasons: - Conflates the `temperature` aspect of generative AI with these terminology-colliding "temperature"...
The AzureOpenAI client doesn't support function calling (now called tools in Azure SDK) in streaming response. See: https://github.com/spring-projects/spring-ai/blob/1e98f82e03529506c9afaa650717b3819633d573/models/spring-ai-azure-openai/src/main/java/org/springframework/ai/azure/openai/AzureOpenAiChatClient.java#L168 To reproduce, create a simple Client with a tool, and invoke, the...
Test the AOT support for the implemented models and adjust the AOT hints if needed. - [x] OpenAI - https://github.com/tzolov/spring-ai-aot-tests/tree/main/openai-aot-demo - [x] Azure OpenAI - https://github.com/tzolov/spring-ai-aot-tests/tree/main/azure-openai-aot-demo - [x] Amazon Bedrok...
This change aims to conceal the implementation and facilitate handling option objects through the interface. And enforcing immutability to ensure greater safety in multi-threaded environments. - Add Builder and Nested...
The OpenAI Moderation is a tool you can use to check whether text is potentially harmful. This PR content : - Moderation API - Moderation Client - Moderation properties -...