hank9999 commited on
Commit
fe7b0ec
·
1 Parent(s): aa2a16e

fix(anthropic): 修正 output_tokens 为固定值 1

Browse files
Files changed (1) hide show
  1. src/anthropic/handlers.rs +1 -1
src/anthropic/handlers.rs CHANGED
@@ -459,7 +459,7 @@ async fn handle_non_stream_request(
459
  "stop_sequence": null,
460
  "usage": {
461
  "input_tokens": final_input_tokens,
462
- "output_tokens": output_tokens
463
  }
464
  });
465
 
 
459
  "stop_sequence": null,
460
  "usage": {
461
  "input_tokens": final_input_tokens,
462
+ "output_tokens": 1
463
  }
464
  });
465