From f71ef897b6cb7b80b159a75873d248b9ccdc33e6 Mon Sep 17 00:00:00 2001 From: Antoine Jacquemin Date: Tue, 18 Jun 2024 16:36:50 +0200 Subject: [PATCH] remove unneeded info --- kong/llm/drivers/shared.lua | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/kong/llm/drivers/shared.lua b/kong/llm/drivers/shared.lua index ca8e31583184..d8e597356129 100644 --- a/kong/llm/drivers/shared.lua +++ b/kong/llm/drivers/shared.lua @@ -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