Skip to content

Commit

Permalink
remove unneeded info
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineJac committed Jun 18, 2024
1 parent 2124a2b commit f71ef89
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions kong/llm/drivers/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -480,24 +480,9 @@ function _M.post_request(conf, response_object)

-- create a new analytics structure for this plugin
local request_analytics_plugin = {
[log_entry_keys.META_CONTAINER] = {
[log_entry_keys.PLUGIN_ID] = "",
[log_entry_keys.PROVIDER_NAME] = "",
[log_entry_keys.REQUEST_MODEL] = "",
[log_entry_keys.RESPONSE_MODEL] = "",
},
[log_entry_keys.USAGE_CONTAINER] = {
[log_entry_keys.PROMPT_TOKENS] = 0,
[log_entry_keys.COMPLETION_TOKENS] = 0,
[log_entry_keys.TOTAL_TOKENS] = 0,
[log_entry_keys.COST] = 0,
},
[log_entry_keys.CACHE_CONTAINER] = {
[log_entry_keys.CACHE_STATUS] = "",
[log_entry_keys.VECTOR_DB] = "",
[log_entry_keys.EMBEDDINGS_PROVIDER] = "",
[log_entry_keys.EMBEDDINGS_MODEL] = "",
},
[log_entry_keys.META_CONTAINER] = {},
[log_entry_keys.USAGE_CONTAINER] = {},
[log_entry_keys.CACHE_CONTAINER] = {},
}

-- Set the model, response, and provider names in the current try context
Expand Down

0 comments on commit f71ef89

Please sign in to comment.