This repository was archived by the owner on Jan 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,14 @@ impl Agent {
256
256
. try_fold (
257
257
llm_gateway:: api:: FunctionCall :: default ( ) ,
258
258
|acc, e| async move {
259
- let e: FunctionCall = serde_json:: from_str ( & e) ?;
259
+ let e: FunctionCall = serde_json:: from_str ( & e) . map_err ( |err| {
260
+ tracing:: error!(
261
+ "Failed to deserialize to FunctionCall: {:?}. Error: {:?}" ,
262
+ e,
263
+ err
264
+ ) ;
265
+ err
266
+ } ) ?;
260
267
Ok ( FunctionCall {
261
268
name : acc. name . or ( e. name ) ,
262
269
arguments : acc. arguments + & e. arguments ,
Original file line number Diff line number Diff line change @@ -724,7 +724,7 @@ impl RepoFile {
724
724
let mut buffer = match self . buffer ( ) {
725
725
Ok ( b) => b,
726
726
Err ( err) => {
727
- error ! ( ?err, "failed to open file buffer; skipping file" ) ;
727
+ warn ! ( ?err, "failed to open file buffer; skipping file" ) ;
728
728
return None ;
729
729
}
730
730
} ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use axum::{
12
12
use futures:: { future:: Either , stream, StreamExt } ;
13
13
use reqwest:: StatusCode ;
14
14
use serde_json:: json;
15
- use tracing:: { error, warn} ;
15
+ use tracing:: { debug , error, info , warn} ;
16
16
17
17
use self :: conversations:: ConversationId ;
18
18
@@ -91,6 +91,7 @@ pub(super) async fn answer(
91
91
Extension ( app) : Extension < Application > ,
92
92
Extension ( user) : Extension < User > ,
93
93
) -> super :: Result < impl IntoResponse > {
94
+ info ! ( ?params. q, "handling /answer query" ) ;
94
95
let query_id = uuid:: Uuid :: new_v4 ( ) ;
95
96
96
97
let conversation_id = ConversationId {
@@ -135,6 +136,8 @@ pub(super) async fn answer(
135
136
. clone ( )
136
137
. into_owned ( ) ;
137
138
139
+ debug ! ( ?query_target, "parsed query target" ) ;
140
+
138
141
let action = Action :: Query ( query_target) ;
139
142
exchanges. push ( Exchange :: new ( query_id, query) ) ;
140
143
You can’t perform that action at this time.
0 commit comments