You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asking for longer prompts triggers - Request processing failed: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://localhost:11434/api/chat": timeout
#1634
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
Hello, I see that there was a possible duplicate of this but it was closed as not having provided enough info
Bug description
i have tried to use phi3, llama3.2:1b, llama3.2:latest...
i have asked questions with wordy answers inside the terminal and i get a response every time.
However, with the spring ai project, every time i ask a question that should generate a somewhat longer answer, i get the above error;
if i ask plain things like 'count to 10' - i get a response; If i ask 'count to 100' - error above followed by 'Socket closed '
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://localhost:11434/api/chat": timeout] with root cause
java.net.SocketException: Socket closed
at java.base/sun.nio.ch.NioSocketImpl.endRead(NioSocketImpl.java:253) ~[na:na]
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:332) ~[na:na]
at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:355) ~[na:na]
at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:808) ~[na:na]
at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966) ~[na:na]
at okio.InputStreamSource.read(JvmOkio.kt:93) ~[okio-jvm-3.6.0.jar:na]
at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:128) ~[okio-jvm-3.6.0.jar:na]
at okio.RealBufferedSource.indexOf(RealBufferedSource.kt:430) ~[okio-jvm-3.6.0.jar:na]
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:323) ~[okio-jvm-3.6.0.jar:na]
i run an amazon Linux EC2 with processor:
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
16GB RAM
-- could these limited resources be problematic? Steps to reproduce
created a plain spring boot project with spring-ai-bom;
added a plain ChatController with contents
private final ChatModel chatModel;
public ChatController(ChatModel chatModel) {
this.chatModel = chatModel;
}
Uh oh!
There was an error while loading. Please reload this page.
Hello, I see that there was a possible duplicate of this but it was closed as not having provided enough info
Bug description
i have tried to use phi3, llama3.2:1b, llama3.2:latest...
i have asked questions with wordy answers inside the terminal and i get a response every time.
However, with the spring ai project, every time i ask a question that should generate a somewhat longer answer, i get the above error;
if i ask plain things like 'count to 10' - i get a response; If i ask 'count to 100' - error above followed by 'Socket closed '
Environment
i run an amazon Linux EC2 with processor:
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
16GB RAM
-- could these limited resources be problematic?
Steps to reproduce
created a plain spring boot project with spring-ai-bom;
added a plain ChatController with contents
private final ChatModel chatModel;
public ChatController(ChatModel chatModel) {
this.chatModel = chatModel;
}
Expected behavior
i expect a response from the model which is as large as its output context (1024 chars for ex for llama3.2:1b)
Minimal Complete Reproducible example
setup as above and ask to provide a long description;
The text was updated successfully, but these errors were encountered: