JiaqiXue commited on
Commit
70cd345
·
verified ·
1 Parent(s): 8de7b55

fix: correct cost display unit to per-query dollar amount

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -67,7 +67,7 @@ from router import R2Router
67
  router = R2Router.from_pretrained(path, embed_url="http://localhost:8000")
68
  result = router.route_text("What is the capital of France?")
69
  print(f"Model: {result['model_full_name']}, Budget: {result['token_limit']}")
70
- print(f"Estimated Quality: {result['predicted_quality']:.3f}, Estimated Cost: ${result['predicted_cost']*1e6:.4f}/1M tokens")
71
  ```
72
 
73
  ### Adjusting Lambda (Cost-Accuracy Tradeoff)
 
67
  router = R2Router.from_pretrained(path, embed_url="http://localhost:8000")
68
  result = router.route_text("What is the capital of France?")
69
  print(f"Model: {result['model_full_name']}, Budget: {result['token_limit']}")
70
+ print(f"Estimated Quality: {result['predicted_quality']:.3f}, Estimated Cost: ${result['predicted_cost']:.6f}")
71
  ```
72
 
73
  ### Adjusting Lambda (Cost-Accuracy Tradeoff)