Open kursatufukcoskun opened 4 days ago
@kursatufukcoskun thanks for reporting this issue. I tried to reproduce the error, but couldn't do it. Perhaps could you share some more details about your setup or a small app example that reproduces the problem? Also, could you try and see if the problem is still there when using version 1.0.0-SNAPSHOT? Thanks!
Bug description Tika Document Reader dependency causing response type exception.
Environment Spring Boot version: 3.3.4 Spring AI Version: 1.0.0-M2 Java Version: OpenJDK 22
Steps to reproduce Add tika dependency to the pom.xml
Call OpenAI chat model:
Expected behavior It should response as expected but when Tika dependency is in my project, cause response type exception.
Exception
By the way, this doesn't only happen with OpenAI. I tried it with Mistral, and it has the same problem. I didn't have this problem when I tried it with Bedrock. However, with Bedrock, the response is text, instead of json. When I remove the Tika dependency, the response turns into json again.