spring-ai
spring-ai copied to clipboard
An Application Framework for AI Engineering
**Bug description** Create a prompt with `Prompt prompt = new Prompt(messages); // list of messages including UserMessage` And set MessageChatMemoryAdvisor as an advisor. ``` chatClient .prompt(prompt) .system(systemText) .advisors(new MessageChatMemoryAdvisor(chatMemory)) ```...
…ilder pattern 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 to: * Sign...
When using Azure OpenAI, the 'usage' metadata is always returned as empty in the stream(). I understand that 'usage' is supported in the latest OpenAIServiceVersion, V2024_08_01_PREVIEW. Therefore, the AzureOpenAiChatOptions should...
**Current Behavior** Currently, it is not possible to set the `reasoningEffort` parameter when using `AzureOpenAiChatOptions`. This functionality is only available for `OpenAiChatOptions`. Working example with OpenAiChatModel: ```java OpenAiChatOptions.builder() .reasoningEffort("low") .build();...
**Expected Behavior** Be able to create an AzureVectorStore with specified MetadataFields list in the configuration, like: ```yaml spring: ai: vectorstore: azure: url: endpoint api-key: key metadata-fileds: - name: filterField fieldType:...
**Bug description** No exception is thrown when a 429 (Too Many Requests) error occurs. The application hangs indefinitely at the `chatResponse `method invocation, waiting for it to return. This behavior...
**Bug description** The `AzureOpenAiChatModel` does not support the retry mechanism. According to the documentation, this feature should already be supported. However, after configuring the following parameters, retries still do not...
The current `AzureVectorStoreAutoConfiguration` expects an api key, however there are many organization that don't allow api key access and leverage the azure managed system identity. todo: - enhance the `AzureVectorStoreAutoConfiguration`...
There are several objects that should be returned as metadata, but the current implementation was developed a long time ago and only handled the metadata that was returned from making...
- For https://github.com/spring-projects/spring-ai/blob/ee19ee1db958f02982a29ff13d8fb04d6d415b08/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/azure/openai/AzureOpenAiAutoConfiguration.java#L62 This apiKey is currently set globally, so if there are multiple apikeys in an application, will there be conflicts? Is it put into mode filesl? It can...