Skip to content

Commit

Permalink
fix: dont log costs by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Dec 20, 2024
1 parent ef424be commit f65e75e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gptme/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ def step(

# generate response
msg_response = reply(msgs, get_model().model, stream, tools)
log_costs(msgs + [msg_response])
if os.environ.get("GPTME_COSTS") in ["1", "true"]:
log_costs(msgs + [msg_response])

# log response and run tools
if msg_response:
Expand Down

0 comments on commit f65e75e

Please sign in to comment.