spring-ai
spring-ai copied to clipboard
An Application Framework for AI Engineering
**Bug description** When I chat robot configuration MCP client for https://openrouter.ai/api/, the corresponding model is deepseek/deepseek - chat - v3-0324: when free Returns an error org.springframework.ai.retry.NonTransientAiException: 404 - {"error":{"message":"No endpoints...
I am encountering an issue where I am unable to retrieve the inference process for the DeepSeek-R1 model. Despite following the standard procedures, the system fails to fetch or display...
**Bug description** JONS ``` {"id":"d7ae7c4a-1524-4fe5-9d58-e4d59b89d8f0","object":"chat.completion.chunk","created":1709899323,"model":"step-1-8k","choices":[{"index":0,"delta":{"role":"","content":"跃"},"finish_reason":""}],"usage":{"prompt_tokens":83,"completion_tokens":5,"total_tokens":88}} ``` **Steps to reproduce** role is “” Error Code: ModelOptionsUtils$mapToClass ``` public static T mapToClass(Map source, Class clazz) { try { String json = OBJECT_MAPPER.writeValueAsString(source);...
**Bug description** While using WatsonxAiChatModel I see the request is sent to the following endpoint: **/ml/v1/text/generation?version=2023-05-29** https://cloud.ibm.com/apidocs/watsonx-ai#text-generation while I expect it should use the following one: **/ml/v1/text/chat?version=2023-05-29** https://cloud.ibm.com/apidocs/watsonx-ai#text-chat and consequently...
Please do a quick search on GitHub issues first, the feature you are about to request might have already been requested. **Expected Behavior** ChatModel.stream(xxx) .flatMapSequential(f -> { System.out.println(f.getResult().getOutput().getContent()); // Output...
**Expected Behavior** I'd like to see ``@JsonProperty`` style of enums with ``BeanOutputConverter`` - it'd be great to have an ability to give AI assistant a range of constant values, which...
## Summary - Makes BeanOutputConverter class more subclass-friendly by changing access modifiers for key fields and methods - Extracts template string in getFormat() to allow customization by subclasses - Provides...
OpenAI supports structured output as a feature. BeanOutputConverter will be more robust and predictable if SpringAI leverages it. **Expected Behavior** BeanOutputConverter uses OpenAI structured output feature when using OpenAI. **Current...
**Bug description** I have the following code... ```java private final BeanOutputConverter transactionRecordConverter; ... this.transactionRecordConverter = new BeanOutputConverter(TransactionRecord.class); ... PromptTemplate promptTemplate = new PromptTemplate(""" Given the following transaction details, check if...