返回 DeepSeek-Reasonix
errors.go
根目录 / internal / provider / errors.go
1 package provider
2
3 import "errors"
4
5 // ErrEmptyResponse marks a clean provider completion that carried no text,
6 // reasoning, tool calls, response items, or server-side activity. The agent
7 // may safely retry the frozen request because the empty attempt produced no
8 // assistant message that can be committed to conversation history.
9 var ErrEmptyResponse = errors.New("empty provider response")
10
11 // ErrNonStreamingResponse marks a stream request answered with a complete
12 // non-SSE body (a gateway landing page, an HTML or JSON error page). It is an
13 // endpoint configuration problem, not a dropped connection, so it never wraps
14 // io.ErrUnexpectedEOF and retrying the same request cannot recover it.
15 var ErrNonStreamingResponse = errors.New("endpoint returned a non-streaming response")
16
16 lines GO