spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

An Application Framework for AI Engineering

Results 659 spring-ai issues
Sort by recently updated
recently updated
newest added
trafficstars

https://github.com/spring-projects/spring-ai/blob/v1.0.0-M7/spring-ai-model/src/main/java/org/springframework/ai/embedding/EmbeddingModel.java It's synchronous API, this forces class OpenAiApi holds both RestClient and WebClient: https://github.com/spring-projects/spring-ai/blob/v1.0.0-M7/models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java#L100 This also forces a Spring WebFlux application to use thread pool for blocking call to embed().

Fix typo, it should be `asyncSpec`

This PR solves some problems with message ordering: 1) JdbcChatMemory fetches rows in DESC order, and MessageChatMemoryAdvisor get and add all messages in that order - from last to first....

related issue: https://github.com/spring-projects/spring-ai/issues/2804 I have improved the Anthropic API to support image URLs. --- The following areas still need improvement: - In Spring AI, the `MimeType` is required in the...

# No static resource sse. ## Bug description 使用cursor 连接 webflux mcp 服务器,在解析 /see 请求时发生了 404 NOT_FOUND. ![Image](https://github.com/user-attachments/assets/816c1b87-290f-470e-ac73-c22a310e6b67) ## Environment Spring AI 1.0.0-M6 Java version 17 MACOS 15.3.2 (24D81) ##...

for example ```java @Bean public ChatClient chatClient(OllamaChatModel ollamaChatModel) { return ChatClient.builder(ollamaChatModel) .defaultAdvisors(new MessageChatMemoryAdvisor(new InMemoryChatMemory())) .build(); } ``` ```java @Component public class MatchPlanTool { @Tool(name = "matchPlan", returnDirect = true, description...

## Expected Behavior The `TokenTextSplitter` class should support splitting text into chunks with an optional overlap between them. This would enable better context preservation when processing long texts that are...

Caused by: org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class java.time.Duration] at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.writeInternal(AbstractJackson2HttpMessageConverter.java:489) at org.springframework.http.converter.AbstractGenericHttpMessageConverter.writeInternal(AbstractGenericHttpMessageConverter.java:123) at org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:235) at org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitterReturnValueHandler$HttpMessageConvertingHandler.sendInternal(ResponseBodyEmitterReturnValueHandler.java:221) at org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitterReturnValueHandler$HttpMessageConvertingHandler.send(ResponseBodyEmitterReturnValueHandler.java:212) at org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter.sendInternal(ResponseBodyEmitter.java:223) ... 8 common frames omitted Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException:...

I manage tool definations as datatables in database, i can add or remove tool definations at runtime. I use spring-ai-mcp-server to expose all tools defination as mcp service, ``` @Bean...

This pull request fixes numerous minor typos and naming inconsistencies across the codebase. ### Changes included: - Corrected misspellings such as `optoins` → `options`, `Differnt` → `Different`, `Autoconfiguration` -> `AutoConfiguration`...