show cost by /ask-code
This commit is contained in:
parent
3ec6bcfc92
commit
ce89bf904f
@ -14,6 +14,7 @@ def query(question, lsp_brige_port):
|
||||
|
||||
# Print the answer
|
||||
print(answer[0])
|
||||
print(f"\n\n/***ask-code has costed approximately ${int(float(answer[2]['token_usage']['total_cost'])/0.7*10000)/10000} USD for this question.***")
|
||||
|
||||
|
||||
def main():
|
||||
|
Loading…
x
Reference in New Issue
Block a user