MCPcopy Index your code
hub / github.com/going-doer/Paper2Code / save_accumulated_cost

Function save_accumulated_cost

codes/utils.py:275–277  ·  view source on GitHub ↗
(accumulated_cost_file, cost)

Source from the content-addressed store, hash-verified

273 return 0.0
274
275def save_accumulated_cost(accumulated_cost_file, cost):
276 with open(accumulated_cost_file, "w", encoding="utf-8") as f:
277 json.dump({"total_cost": cost}, f)
278
279def print_response(completion_json, is_llm=False):
280 print("============================================")

Callers 4

3.1_coding_sh.pyFile · 0.90
1_planning.pyFile · 0.90
2_analyzing.pyFile · 0.90
3_coding.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected