Skip to content

Commit

Permalink
discussion_r1560123437
Browse files Browse the repository at this point in the history
  • Loading branch information
tysoekong committed Apr 11, 2024
1 parent 4d62e2c commit 48fff98
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kong/llm/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -519,17 +519,17 @@ function _M:handle_streaming_request(body)
if self.conf.logging.log_payloads then
-- append the "choice" to the buffer, for logging later. this actually works!
if not event_t then
event_t = cjson.decode(formatted)
end

if not token_t then
token_t = get_token_text(event_t)
event_t, err = cjson.decode(formatted)
end

if err then
return internal_server_error("something wrong with decoding a specific token")
end

if not token_t then
token_t = get_token_text(event_t)
end

telemetry_fake_table.response:put(token_t)
end

Expand Down

0 comments on commit 48fff98

Please sign in to comment.