Repository navigation
fix: return call failed when LLM not available - #16518
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds a validation step in AskService's stream finalization that trims the extracted visible answer and, if empty, logs a warning and emits an AskDeltaError instead of continuing to citation insertion and final result emission. Includes a new test covering this scenario. ChangesEmpty LLM Answer Guard
Estimated code review effort: 1 (Trivial) | ~5 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant AskService
participant LLM
Client->>AskService: Stream(request)
AskService->>LLM: stream chunks
LLM-->>AskService: no chunks returned
AskService->>AskService: trim visible answer
AskService-->>Client: AskDeltaError ("LLM call failed")
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16518 +/- ##
=======================================
Coverage 93.16% 93.16%
=======================================
Files 10 10
Lines 717 717
Branches 118 118
=======================================
Hits 668 668
Misses 29 29
Partials 20 20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
As title:
return
LLM cal failedwhen failed instead of return northing