Skip to content

Commit

Permalink
Update kong/llm/drivers/shared.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion authored Aug 8, 2024
1 parent cf45500 commit 23df2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/llm/drivers/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ function _M.post_request(conf, response_object)
if response_object.usage and response_object.usage.completion_tokens then
local time_per_token = math.floor(llm_latency / response_object.usage.completion_tokens)
request_analytics_plugin[log_entry_keys.USAGE_CONTAINER][log_entry_keys.TIME_PER_TOKEN] = time_per_token
llm_state.set_metrics("totp_latency", time_per_token)
llm_state.set_metrics("tpot_latency", time_per_token)
end
end

Expand Down

0 comments on commit 23df2c1

Please sign in to comment.