The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
refactor: move all testing to top-level of repo
Krrish Dholakia3560f0ef2c96
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex 6014cb8f144..01ca0ee5e71 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -108,7 +108,7 @@ jobs:command: |pwdls- python -m pytest -vv litellm/tests/ -x --junitxml=test-results/junit.xml --durations=5 -k "not test_python_38.py and not router and not assistants"+ python -m pytest -vv tests/local_testing -x --junitxml=test-results/junit.xml --durations=5 -k "not test_python_38.py and not router and not assistants"no_output_timeout: 120m# Store test results@@ -180,7 +180,7 @@ jobs:command: |pwdls- python -m pytest litellm/tests/ -vv -k "router" -x -s -v --junitxml=test-results/junit.xml --durations=5+ python -m pytest tests/local_testing -vv -k "router" -x -s -v --junitxml=test-results/junit.xml --durations=5no_output_timeout: 120m# Store test results- store_test_results:@@ -210,7 +210,7 @@ jobs:command: |pwdls- python -m pytest litellm/tests/ -vv -k "assistants" -x -s -v --junitxml=test-results/junit.xml --durations=5+ python -m pytest tests/local_testing/ -vv -k "assistants" -x -s -v --junitxml=test-results/junit.xml --durations=5no_output_timeout: 120m# Store test results- store_test_results:@@ -306,7 +306,7 @@ jobs:command: |pwdls- python -m pytest -vv litellm/tests/test_python_38.py+ python -m pytest -vv tests/local_testing/test_python_38.pybuild_and_test:machine:diff --git a/litellm/proxy/_experimental/out/404.html b/litellm/proxy/_experimental/out/404.htmldeleted file mode 100644index d8a0d885a3a..00000000000--- a/litellm/proxy/_experimental/out/404.html+++ /dev/null@@ -1 +0,0 @@-<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/ui/_next/static/media/a34f9d1faa5f3315-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/ui/_next/static/css/cd10067a0a3408b4.css" crossorigin="" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/ui/_next/static/chunks/webpack-193a7eac80c8baba.js" crossorigin=""/><script src="/ui/_next/static/chunks/fd9d1056-f593049e31b05aeb.js" async="" crossorigin=""></script><script src="/ui/_next/static/chunks/69-8316d07d1f41e39f.js" async="" crossorigin=""></script><script src="/ui/_next/static/chunks/main-app-9b4fb13a7db53edf.js" async="" crossorigin=""></script><title>404: This page could not be found.</title><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><meta name="next-size-adjust"/><script src="/ui/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js" crossorigin="" noModule=""></script></head><body class="__className_86ef86"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/ui/_next/static/chunks/webpack-193a7eac80c8baba.js" crossorigin="" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/ui/_next/static/media/a34f9d1faa5f3315-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/ui/_next/static/css/cd10067a0a3408b4.css\",\"style\",{\"crossOrigin\":\"\"}]\n0:\"$L3\"\n"])</script><script>self.__next_f.push([1,"4:I[47690,[],\"\"]\n6:I[5613,[],\"\"]\n7:I[31778,[],\"\"]\nd:I[48955,[],\"\"]\n8:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n9:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\na:{\"display\":\"inline-block\"}\nb:{\"fontSize\":14,\"fontWe"])</script><script>self.__next_f.push([1,"ight\":400,\"lineHeight\":\"49px\",\"margin\":0}\ne:[]\n"])</script><script>self.__next_f.push([1,"3:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/ui/_next/static/css/cd10067a0a3408b4.css\",\"precedence\":\"next\",\"crossOrigin\":\"\"}]],[\"$\",\"$L4\",null,{\"buildId\":\"XvFC85KVLR6jWQ3wsWyMM\",\"assetPrefix\":\"/ui\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[\"$L5\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null]]},[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_86ef86\",\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$8\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$9\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$a\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$b\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}],null]],\"initialHead\":[false,\"$Lc\"],\"globalErrorComponent\":\"$d\",\"missingSlots\":\"$We\"}]]\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"meta\",\"4\",{\"name\":\"next-size-adjust\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,""])</script></body></html>\ No newline at end of filediff --git a/litellm/proxy/_experimental/out/model_hub.html b/litellm/proxy/_experimental/out/model_hub.htmldeleted file mode 100644index 5ba73be91f6..00000000000--- a/litellm/proxy/_experimental/out/model_hub.html+++ /dev/null@@ -1 +0,0 @@-<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/ui/_next/static/chunks/webpack-193a7eac80c8baba.js" crossorigin=""/><script src="/ui/_next/static/chunks/fd9d1056-f593049e31b05aeb.js" async="" crossorigin=""></script><script src="/ui/_next/static/chunks/69-8316d07d1f41e39f.js" async="" crossorigin=""></script><script src="/ui/_next/static/chunks/main-app-9b4fb13a7db53edf.js" async="" crossorigin=""></script><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/ui/favicon.ico" type="image/x-icon" sizes="16x16"/><meta name="next-size-adjust"/><script src="/ui/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js" crossorigin="" noModule=""></script></head><body><script src="/ui/_next/static/chunks/webpack-193a7eac80c8baba.js" crossorigin="" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/ui/_next/static/media/a34f9d1faa5f3315-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/ui/_next/static/css/cd10067a0a3408b4.css\",\"style\",{\"crossOrigin\":\"\"}]\n0:\"$L3\"\n"])</script><script>self.__next_f.push([1,"4:I[47690,[],\"\"]\n6:I[77831,[],\"\"]\n7:I[87494,[\"902\",\"static/chunks/902-58bf23027703b2e8.js\",\"131\",\"static/chunks/131-3d2257b0ff5aadb2.js\",\"777\",\"static/chunks/777-a81b45dec53652df.js\",\"418\",\"static/chunks/app/model_hub/page-8ed460f3f33c0bf2.js\"],\"\"]\n8:I[5613,[],\"\"]\n9:I[31778,[],\"\"]\nb:I[48955,[],\"\"]\nc:[]\n"])</script><script>self.__next_f.push([1,"3:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/ui/_next/static/css/cd10067a0a3408b4.css\",\"precedence\":\"next\",\"crossOrigin\":\"\"}]],[\"$\",\"$L4\",null,{\"buildId\":\"XvFC85KVLR6jWQ3wsWyMM\",\"assetPrefix\":\"/ui\",\"initialCanonicalUrl\":\"/model_hub\",\"initialTree\":[\"\",{\"children\":[\"model_hub\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"model_hub\",{\"children\":[\"__PAGE__\",{},[\"$L5\",[\"$\",\"$L6\",null,{\"propsForComponent\":{\"params\":{}},\"Component\":\"$7\",\"isStaticGeneration\":true}],null]]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"model_hub\",\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}]]},[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_86ef86\",\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}],null]],\"initialHead\":[false,\"$La\"],\"globalErrorComponent\":\"$b\",\"missingSlots\":\"$Wc\"}]]\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/ui/favicon.ico\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"meta\",\"5\",{\"name\":\"next-size-adjust\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,""])</script></body></html>\ No newline at end of filediff --git a/litellm/proxy/_experimental/out/onboarding.html b/litellm/proxy/_experimental/out/onboarding.htmldeleted file mode 100644index 23e95e4c527..00000000000--- a/litellm/proxy/_experimental/out/onboarding.html+++ /dev/null@@ -1 +0,0 @@-<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/ui/_next/static/chunks/webpack-193a7eac80c8baba.js" crossorigin=""/><script src="/ui/_next/static/chunks/fd9d1056-f593049e31b05aeb.js" async="" crossorigin=""></script><script src="/ui/_next/static/chunks/69-8316d07d1f41e39f.js" async="" crossorigin=""></script><script src="/ui/_next/static/chunks/main-app-9b4fb13a7db53edf.js" async="" crossorigin=""></script><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/ui/favicon.ico" type="image/x-icon" sizes="16x16"/><meta name="next-size-adjust"/><script src="/ui/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js" crossorigin="" noModule=""></script></head><body><script src="/ui/_next/static/chunks/webpack-193a7eac80c8baba.js" crossorigin="" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/ui/_next/static/media/a34f9d1faa5f3315-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/ui/_next/static/css/cd10067a0a3408b4.css\",\"style\",{\"crossOrigin\":\"\"}]\n0:\"$L3\"\n"])</script><script>self.__next_f.push([1,"4:I[47690,[],\"\"]\n6:I[77831,[],\"\"]\n7:I[667,[\"665\",\"static/chunks/3014691f-b24e8254c7593934.js\",\"902\",\"static/chunks/902-58bf23027703b2e8.js\",\"684\",\"static/chunks/684-16b194c83a169f6d.js\",\"777\",\"static/chunks/777-a81b45dec53652df.js\",\"461\",\"static/chunks/app/onboarding/page-cba59362096ed469.js\"],\"\"]\n8:I[5613,[],\"\"]\n9:I[31778,[],\"\"]\nb:I[48955,[],\"\"]\nc:[]\n"])</script><script>self.__next_f.push([1,"3:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/ui/_next/static/css/cd10067a0a3408b4.css\",\"precedence\":\"next\",\"crossOrigin\":\"\"}]],[\"$\",\"$L4\",null,{\"buildId\":\"XvFC85KVLR6jWQ3wsWyMM\",\"assetPrefix\":\"/ui\",\"initialCanonicalUrl\":\"/onboarding\",\"initialTree\":[\"\",{\"children\":[\"onboarding\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"onboarding\",{\"children\":[\"__PAGE__\",{},[\"$L5\",[\"$\",\"$L6\",null,{\"propsForComponent\":{\"params\":{}},\"Component\":\"$7\",\"isStaticGeneration\":true}],null]]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"onboarding\",\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}]]},[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_86ef86\",\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"loadingScripts\":\"$undefined\",\"hasLoading\":false,\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}],null]],\"initialHead\":[false,\"$La\"],\"globalErrorComponent\":\"$b\",\"missingSlots\":\"$Wc\"}]]\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/ui/favicon.ico\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"meta\",\"5\",{\"name\":\"next-size-adjust\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,""])</script></body></html>\ No newline at end of filediff --git a/litellm/tests/langfuse.log b/litellm/tests/langfuse.logdeleted file mode 100644index 6a59a8ff090..00000000000--- a/litellm/tests/langfuse.log+++ /dev/null@@ -1,173 +0,0 @@-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-Creating trace id='8a5b5991-4a10-4dfe-ae1d-52a9195fcde1' timestamp=datetime.datetime(2024, 7, 11, 14, 57, 41, 996862, tzinfo=datetime.timezone.utc) name='litellm-acompletion' user_id='langfuse_latency_test_user' input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None} session_id=None release=None version=None metadata=None tags=[] public=None-Creating trace id='dba8aaeb-d435-4c82-94f9-9615ace72313' timestamp=datetime.datetime(2024, 7, 11, 14, 57, 41, 998554, tzinfo=datetime.timezone.utc) name='litellm-acompletion' user_id='langfuse_latency_test_user' input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None} session_id=None release=None version=None metadata=None tags=[] public=None-Creating generation trace_id='dba8aaeb-d435-4c82-94f9-9615ace72313' name='litellm-acompletion' start_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 993400) metadata={'litellm_response_cost': None, 'cache_hit': False} input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None} level=<ObservationLevel.DEFAULT: 'DEFAULT'> status_message=None parent_observation_id=None version=None id='time-07-57-41-993400_chatcmpl-296c9e6a-4142-431c-86ba-c68b550c8005' end_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 995938) completion_start_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 995938) model='chatgpt-v-2' model_parameters={'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'} usage=Usage(input=10, output=20, total=None, unit=<ModelUsageUnit.TOKENS: 'TOKENS'>, input_cost=None, output_cost=None, total_cost=None) prompt_name=None prompt_version=None...-item size 502-item size 930-Creating generation trace_id='8a5b5991-4a10-4dfe-ae1d-52a9195fcde1' name='litellm-acompletion' start_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 992764) metadata={'litellm_response_cost': None, 'cache_hit': False} input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None} level=<ObservationLevel.DEFAULT: 'DEFAULT'> status_message=None parent_observation_id=None version=None id='time-07-57-41-992764_chatcmpl-d449c7f4-47c5-4e46-a9f1-4cd2c1fcf257' end_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 995293) completion_start_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 995293) model='chatgpt-v-2' model_parameters={'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'} usage=Usage(input=10, output=20, total=None, unit=<ModelUsageUnit.TOKENS: 'TOKENS'>, input_cost=None, output_cost=None, total_cost=None) prompt_name=None prompt_version=None...-item size 502-item size 930-Creating trace id='d8d919d4-0c8d-47c5-b1a8-38d884379c74' timestamp=datetime.datetime(2024, 7, 11, 14, 57, 42, 766, tzinfo=datetime.timezone.utc) name='litellm-acompletion' user_id='langfuse_latency_test_user' input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None} session_id=None release=None version=None metadata=None tags=[] public=None-Creating generation trace_id='d8d919d4-0c8d-47c5-b1a8-38d884379c74' name='litellm-acompletion' start_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 994499) metadata={'litellm_response_cost': None, 'cache_hit': False} input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None} level=<ObservationLevel.DEFAULT: 'DEFAULT'> status_message=None parent_observation_id=None version=None id='time-07-57-41-994499_chatcmpl-5b902172-1250-46e4-bcdd-fd071b951f8c' end_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 996988) completion_start_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 996988) model='chatgpt-v-2' model_parameters={'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'} usage=Usage(input=10, output=20, total=None, unit=<ModelUsageUnit.TOKENS: 'TOKENS'>, input_cost=None, output_cost=None, total_cost=None) prompt_name=None prompt_version=None...-Creating trace id='fac644ff-5f4c-4b45-a55d-a5c4f93ceeec' timestamp=datetime.datetime(2024, 7, 11, 14, 57, 42, 1164, tzinfo=datetime.timezone.utc) name='litellm-acompletion' user_id='langfuse_latency_test_user' input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None} session_id=None release=None version=None metadata=None tags=[] public=None-item size 502-item size 930-Creating generation trace_id='fac644ff-5f4c-4b45-a55d-a5c4f93ceeec' name='litellm-acompletion' start_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 993972) metadata={'litellm_response_cost': None, 'cache_hit': False} input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None} level=<ObservationLevel.DEFAULT: 'DEFAULT'> status_message=None parent_observation_id=None version=None id='time-07-57-41-993972_chatcmpl-ecc3628b-922b-430d-85b5-068bc01b9cb9' end_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 996217) completion_start_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 996217) model='chatgpt-v-2' model_parameters={'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'} usage=Usage(input=10, output=20, total=None, unit=<ModelUsageUnit.TOKENS: 'TOKENS'>, input_cost=None, output_cost=None, total_cost=None) prompt_name=None prompt_version=None...-item size 502-item size 930-Creating trace id='979fb198-f54d-4e11-ba5c-dec4b5906322' timestamp=datetime.datetime(2024, 7, 11, 14, 57, 42, 2797, tzinfo=datetime.timezone.utc) name='litellm-acompletion' user_id='langfuse_latency_test_user' input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None} session_id=None release=None version=None metadata=None tags=[] public=None-Creating generation trace_id='979fb198-f54d-4e11-ba5c-dec4b5906322' name='litellm-acompletion' start_time=datetime.datetime(2024, 7, 11, 7, 57, 41, 995013) metadata={'litellm_response_cost': None, 'cache_hit': False} input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None} level=<ObservationLevel.DEFAULT: 'DEFAULT'> status_message=None parent_observation_id=None version=None id='time-07-57-41-995013_chatcmpl-41cfe580-e870-4af9-830d-53472ba99028' end_time=datetime.datetime(2024, 7, 11, 7, 57, 42, 2338) completion_start_time=datetime.datetime(2024, 7, 11, 7, 57, 42, 2338) model='chatgpt-v-2' model_parameters={'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'} usage=Usage(input=10, output=20, total=None, unit=<ModelUsageUnit.TOKENS: 'TOKENS'>, input_cost=None, output_cost=None, total_cost=None) prompt_name=None prompt_version=None...-item size 502-item size 930-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-~0 items in the Langfuse queue-uploading batch of 10 items-uploading data: {'batch': [{'id': 'b4eb919c-efde-48b5-9113-b089b46746c3', 'type': 'trace-create', 'body': {'id': 'dba8aaeb-d435-4c82-94f9-9615ace72313', 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 41, 998554, tzinfo=datetime.timezone.utc), 'name': 'litellm-acompletion', 'userId': 'langfuse_latency_test_user', 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'tags': []}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 41, 998725, tzinfo=datetime.timezone.utc)}, {'id': 'ef605d6e-effe-43eb-894b-57cdc6e28ae4', 'type': 'generation-create', 'body': {'traceId': 'dba8aaeb-d435-4c82-94f9-9615ace72313', 'name': 'litellm-acompletion', 'startTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 993400), 'metadata': {'litellm_response_cost': None, 'cache_hit': False}, 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'level': <ObservationLevel.DEFAULT: 'DEFAULT'>, 'id': 'time-07-57-41-993400_chatcmpl-296c9e6a-4142-431c-86ba-c68b550c8005', 'endTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 995938), 'completionStartTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 995938), 'model': 'chatgpt-v-2', 'modelParameters': {'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'}, 'usage': {'input': 10, 'output': 20, 'unit': <ModelUsageUnit.TOKENS: 'TOKENS'>}}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 41, 999054, tzinfo=datetime.timezone.utc)}, {'id': '34ab3341-9b8f-45ef-ba32-31d6678c12e1', 'type': 'trace-create', 'body': {'id': '8a5b5991-4a10-4dfe-ae1d-52a9195fcde1', 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 41, 996862, tzinfo=datetime.timezone.utc), 'name': 'litellm-acompletion', 'userId': 'langfuse_latency_test_user', 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'tags': []}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 41, 999535, tzinfo=datetime.timezone.utc)}, {'id': '17e0038d-eb35-47f0-8501-2e9298e25ab3', 'type': 'generation-create', 'body': {'traceId': '8a5b5991-4a10-4dfe-ae1d-52a9195fcde1', 'name': 'litellm-acompletion', 'startTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 992764), 'metadata': {'litellm_response_cost': None, 'cache_hit': False}, 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'level': <ObservationLevel.DEFAULT: 'DEFAULT'>, 'id': 'time-07-57-41-992764_chatcmpl-d449c7f4-47c5-4e46-a9f1-4cd2c1fcf257', 'endTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 995293), 'completionStartTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 995293), 'model': 'chatgpt-v-2', 'modelParameters': {'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'}, 'usage': {'input': 10, 'output': 20, 'unit': <ModelUsageUnit.TOKENS: 'TOKENS'>}}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 41, 999833, tzinfo=datetime.timezone.utc)}, {'id': '282dc858-0b89-44b2-9946-1b4580a3b99d', 'type': 'trace-create', 'body': {'id': 'd8d919d4-0c8d-47c5-b1a8-38d884379c74', 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 42, 766, tzinfo=datetime.timezone.utc), 'name': 'litellm-acompletion', 'userId': 'langfuse_latency_test_user', 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'tags': []}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 42, 890, tzinfo=datetime.timezone.utc)}, {'id': '8de8e06e-69a5-4636-a1be-7ce1179b7607', 'type': 'generation-create', 'body': {'traceId': 'd8d919d4-0c8d-47c5-b1a8-38d884379c74', 'name': 'litellm-acompletion', 'startTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 994499), 'metadata': {'litellm_response_cost': None, 'cache_hit': False}, 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'level': <ObservationLevel.DEFAULT: 'DEFAULT'>, 'id': 'time-07-57-41-994499_chatcmpl-5b902172-1250-46e4-bcdd-fd071b951f8c', 'endTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 996988), 'completionStartTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 996988), 'model': 'chatgpt-v-2', 'modelParameters': {'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'}, 'usage': {'input': 10, 'output': 20, 'unit': <ModelUsageUnit.TOKENS: 'TOKENS'>}}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 42, 1121, tzinfo=datetime.timezone.utc)}, {'id': '576825dd-27ff-49b2-8af0-24a6ccd5f853', 'type': 'trace-create', 'body': {'id': 'fac644ff-5f4c-4b45-a55d-a5c4f93ceeec', 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 42, 1164, tzinfo=datetime.timezone.utc), 'name': 'litellm-acompletion', 'userId': 'langfuse_latency_test_user', 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'tags': []}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 42, 1564, tzinfo=datetime.timezone.utc)}, {'id': '4de8b9d4-96c2-492c-b273-f1d114a710da', 'type': 'generation-create', 'body': {'traceId': 'fac644ff-5f4c-4b45-a55d-a5c4f93ceeec', 'name': 'litellm-acompletion', 'startTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 993972), 'metadata': {'litellm_response_cost': None, 'cache_hit': False}, 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'level': <ObservationLevel.DEFAULT: 'DEFAULT'>, 'id': 'time-07-57-41-993972_chatcmpl-ecc3628b-922b-430d-85b5-068bc01b9cb9', 'endTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 996217), 'completionStartTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 996217), 'model': 'chatgpt-v-2', 'modelParameters': {'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'}, 'usage': {'input': 10, 'output': 20, 'unit': <ModelUsageUnit.TOKENS: 'TOKENS'>}}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 42, 1799, tzinfo=datetime.timezone.utc)}, {'id': 'bdbc23a6-844e-415b-b33f-ede756955c74', 'type': 'trace-create', 'body': {'id': '979fb198-f54d-4e11-ba5c-dec4b5906322', 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 42, 2797, tzinfo=datetime.timezone.utc), 'name': 'litellm-acompletion', 'userId': 'langfuse_latency_test_user', 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'tags': []}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 42, 2921, tzinfo=datetime.timezone.utc)}, {'id': '8b74d44d-cd6d-469f-9077-efea4e82d81b', 'type': 'generation-create', 'body': {'traceId': '979fb198-f54d-4e11-ba5c-dec4b5906322', 'name': 'litellm-acompletion', 'startTime': datetime.datetime(2024, 7, 11, 7, 57, 41, 995013), 'metadata': {'litellm_response_cost': None, 'cache_hit': False}, 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': "It's simple to use and easy to get started", 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'level': <ObservationLevel.DEFAULT: 'DEFAULT'>, 'id': 'time-07-57-41-995013_chatcmpl-41cfe580-e870-4af9-830d-53472ba99028', 'endTime': datetime.datetime(2024, 7, 11, 7, 57, 42, 2338), 'completionStartTime': datetime.datetime(2024, 7, 11, 7, 57, 42, 2338), 'model': 'chatgpt-v-2', 'modelParameters': {'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'}, 'usage': {'input': 10, 'output': 20, 'unit': <ModelUsageUnit.TOKENS: 'TOKENS'>}}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 42, 3176, tzinfo=datetime.timezone.utc)}], 'metadata': {'batch_size': 10, 'sdk_integration': 'default', 'sdk_name': 'python', 'sdk_version': '2.39.1', 'public_key': 'pk-lf-b3db7e8e-c2f6-4fc7-825c-a541a8fbe003'}}-making request: {"batch": [{"id": "b4eb919c-efde-48b5-9113-b089b46746c3", "type": "trace-create", "body": {"id": "dba8aaeb-d435-4c82-94f9-9615ace72313", "timestamp": "2024-07-11T14:57:41.998554Z", "name": "litellm-acompletion", "userId": "langfuse_latency_test_user", "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "It's simple to use and easy to get started", "role": "assistant", "tool_calls": null, "function_call": null}, "tags": []}, "timestamp": "2024-07-11T14:57:41.998725Z"}, {"id": "ef605d6e-effe-43eb-894b-57cdc6e28ae4", "type": "generation-create", "body": {"traceId": "dba8aaeb-d435-4c82-94f9-9615ace72313", "name": "litellm-acompletion", "startTime": "2024-07-11T07:57:41.993400-07:00", "metadata": {"litellm_response_cost": null, "cache_hit": false}, "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "It's simple to use and easy to get started", "role": "assistant", "tool_calls": null, "function_call": null}, "level": "DEFAULT", "id": "time-07-57-41-993400_chatcmpl-296c9e6a-4142-431c-86ba-c68b550c8005", "endTime": "2024-07-11T07:57:41.995938-07:00", "completionStartTime": "2024-07-11T07:57:41.995938-07:00", "model": "chatgpt-v-2", "modelParameters": {"temperature": "0.7", "max_tokens": 5, "user": "langfuse_latency_test_user", "extra_body": "{}"}, "usage": {"input": 10, "output": 20, "unit": "TOKENS"}}, "timestamp": "2024-07-11T14:57:41.999054Z"}, {"id": "34ab3341-9b8f-45ef-ba32-31d6678c12e1", "type": "trace-create", "body": {"id": "8a5b5991-4a10-4dfe-ae1d-52a9195fcde1", "timestamp": "2024-07-11T14:57:41.996862Z", "name": "litellm-acompletion", "userId": "langfuse_latency_test_user", "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "It's simple to use and easy to get started", "role": "assistant", "tool_calls": null, "function_call": null}, "tags": []}, "timestamp": "2024-07-11T14:57:41.999535Z"}, {"id": "17e0038d-eb35-47f0-8501-2e9298e25ab3", "type": "generation-create", "body": {"traceId": "8a5b5991-4a10-4dfe-ae1d-52a9195fcde1", "name": "litellm-acompletion", "startTime": "2024-07-11T07:57:41.992764-07:00", "metadata": {"litellm_response_cost": null, "cache_hit": false}, "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "It's simple to use and easy to get started", "role": "assistant", "tool_calls": null, "function_call": null}, "level": "DEFAULT", "id": "time-07-57-41-992764_chatcmpl-d449c7f4-47c5-4e46-a9f1-4cd2c1fcf257", "endTime": "2024-07-11T07:57:41.995293-07:00", "completionStartTime": "2024-07-11T07:57:41.995293-07:00", "model": "chatgpt-v-2", "modelParameters": {"temperature": "0.7", "max_tokens": 5, "user": "langfuse_latency_test_user", "extra_body": "{}"}, "usage": {"input": 10, "output": 20, "unit": "TOKENS"}}, "timestamp": "2024-07-11T14:57:41.999833Z"}, {"id": "282dc858-0b89-44b2-9946-1b4580a3b99d", "type": "trace-create", "body": {"id": "d8d919d4-0c8d-47c5-b1a8-38d884379c74", "timestamp": "2024-07-11T14:57:42.000766Z", "name": "litellm-acompletion", "userId": "langfuse_latency_test_user", "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "It's simple to use and easy to get started", "role": "assistant", "tool_calls": null, "function_call": null}, "tags": []}, "timestamp": "2024-07-11T14:57:42.000890Z"}, {"id": "8de8e06e-69a5-4636-a1be-7ce1179b7607", "type": "generation-create", "body": {"traceId": "d8d919d4-0c8d-47c5-b1a8-38d884379c74", "name": "litellm-acompletion", "startTime": "2024-07-11T07:57:41.994499-07:00", "metadata": {"litellm_response_cost": null, "cache_hit": false}, "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "It's simple to use and easy to get started", "role": "assistant", "tool_calls": null, "function_call": null}, "level": "DEFAULT", "id": "time-07-57-41-994499_chatcmpl-5b902172-1250-46e4-bcdd-fd071b951f8c", "endTime": "2024-07-11T07:57:41.996988-07:00", "completionStartTime": "2024-07-11T07:57:41.996988-07:00", "model": "chatgpt-v-2", "modelParameters": {"temperature": "0.7", "max_tokens": 5, "user": "langfuse_latency_test_user", "extra_body": "{}"}, "usage": {"input": 10, "output": 20, "unit": "TOKENS"}}, "timestamp": "2024-07-11T14:57:42.001121Z"}, {"id": "576825dd-27ff-49b2-8af0-24a6ccd5f853", "type": "trace-create", "body": {"id": "fac644ff-5f4c-4b45-a55d-a5c4f93ceeec", "timestamp": "2024-07-11T14:57:42.001164Z", "name": "litellm-acompletion", "userId": "langfuse_latency_test_user", "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "It's simple to use and easy to get started", "role": "assistant", "tool_calls": null, "function_call": null}, "tags": []}, "timestamp": "2024-07-11T14:57:42.001564Z"}, {"id": "4de8b9d4-96c2-492c-b273-f1d114a710da", "type": "generation-create", "body": {"traceId": "fac644ff-5f4c-4b45-a55d-a5c4f93ceeec", "name": "litellm-acompletion", "startTime": "2024-07-11T07:57:41.993972-07:00", "metadata": {"litellm_response_cost": null, "cache_hit": false}, "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "It's simple to use and easy to get started", "role": "assistant", "tool_calls": null, "function_call": null}, "level": "DEFAULT", "id": "time-07-57-41-993972_chatcmpl-ecc3628b-922b-430d-85b5-068bc01b9cb9", "endTime": "2024-07-11T07:57:41.996217-07:00", "completionStartTime": "2024-07-11T07:57:41.996217-07:00", "model": "chatgpt-v-2", "modelParameters": {"temperature": "0.7", "max_tokens": 5, "user": "langfuse_latency_test_user", "extra_body": "{}"}, "usage": {"input": 10, "output": 20, "unit": "TOKENS"}}, "timestamp": "2024-07-11T14:57:42.001799Z"}, {"id": "bdbc23a6-844e-415b-b33f-ede756955c74", "type": "trace-create", "body": {"id": "979fb198-f54d-4e11-ba5c-dec4b5906322", "timestamp": "2024-07-11T14:57:42.002797Z", "name": "litellm-acompletion", "userId": "langfuse_latency_test_user", "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "It's simple to use and easy to get started", "role": "assistant", "tool_calls": null, "function_call": null}, "tags": []}, "timestamp": "2024-07-11T14:57:42.002921Z"}, {"id": "8b74d44d-cd6d-469f-9077-efea4e82d81b", "type": "generation-create", "body": {"traceId": "979fb198-f54d-4e11-ba5c-dec4b5906322", "name": "litellm-acompletion", "startTime": "2024-07-11T07:57:41.995013-07:00", "metadata": {"litellm_response_cost": null, "cache_hit": false}, "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "It's simple to use and easy to get started", "role": "assistant", "tool_calls": null, "function_call": null}, "level": "DEFAULT", "id": "time-07-57-41-995013_chatcmpl-41cfe580-e870-4af9-830d-53472ba99028", "endTime": "2024-07-11T07:57:42.002338-07:00", "completionStartTime": "2024-07-11T07:57:42.002338-07:00", "model": "chatgpt-v-2", "modelParameters": {"temperature": "0.7", "max_tokens": 5, "user": "langfuse_latency_test_user", "extra_body": "{}"}, "usage": {"input": 10, "output": 20, "unit": "TOKENS"}}, "timestamp": "2024-07-11T14:57:42.003176Z"}], "metadata": {"batch_size": 10, "sdk_integration": "default", "sdk_name": "python", "sdk_version": "2.39.1", "public_key": "pk-lf-b3db7e8e-c2f6-4fc7-825c-a541a8fbe003"}} to https://us.cloud.langfuse.com/api/public/ingestion-received response: {"errors":[],"successes":[{"id":"b4eb919c-efde-48b5-9113-b089b46746c3","status":201},{"id":"ef605d6e-effe-43eb-894b-57cdc6e28ae4","status":201},{"id":"34ab3341-9b8f-45ef-ba32-31d6678c12e1","status":201},{"id":"17e0038d-eb35-47f0-8501-2e9298e25ab3","status":201},{"id":"282dc858-0b89-44b2-9946-1b4580a3b99d","status":201},{"id":"8de8e06e-69a5-4636-a1be-7ce1179b7607","status":201},{"id":"576825dd-27ff-49b2-8af0-24a6ccd5f853","status":201},{"id":"4de8b9d4-96c2-492c-b273-f1d114a710da","status":201},{"id":"bdbc23a6-844e-415b-b33f-ede756955c74","status":201},{"id":"8b74d44d-cd6d-469f-9077-efea4e82d81b","status":201}]}-successfully uploaded batch of 10 items-~0 items in the Langfuse queue-consumer is running...-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-Creating trace id='litellm-test-41e731d8-eec7-484d-a123-3f5369227667' timestamp=datetime.datetime(2024, 7, 11, 14, 57, 43, 673224, tzinfo=datetime.timezone.utc) name='litellm-acompletion' user_id='langfuse_latency_test_user' input={'messages': [{'role': 'user', 'content': 'redacted-by-litellm'}]} output={'content': 'redacted-by-litellm', 'role': 'assistant', 'tool_calls': None, 'function_call': None} session_id=None release=None version=None metadata=None tags=[] public=None-Creating generation trace_id='litellm-test-41e731d8-eec7-484d-a123-3f5369227667' name='litellm-acompletion' start_time=datetime.datetime(2024, 7, 11, 7, 57, 43, 671900) metadata={'litellm_response_cost': 5.4999999999999995e-05, 'cache_hit': False} input={'messages': [{'role': 'user', 'content': 'redacted-by-litellm'}]} output={'content': 'redacted-by-litellm', 'role': 'assistant', 'tool_calls': None, 'function_call': None} level=<ObservationLevel.DEFAULT: 'DEFAULT'> status_message=None parent_observation_id=None version=None id='time-07-57-43-671900_chatcmpl-84840e13-5f25-494b-a771-43d6dc9f4825' end_time=datetime.datetime(2024, 7, 11, 7, 57, 43, 672638) completion_start_time=datetime.datetime(2024, 7, 11, 7, 57, 43, 672638) model='gpt-3.5-turbo' model_parameters={'temperature': '0.7', 'stream': False, 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'} usage=Usage(input=10, output=20, total=None, unit=<ModelUsageUnit.TOKENS: 'TOKENS'>, input_cost=None, output_cost=None, total_cost=5.4999999999999995e-05) prompt_name=None prompt_version=None...-item size 497-item size 999-flushing queue-successfully flushed about 0 items.-~0 items in the Langfuse queue-uploading batch of 2 items-uploading data: {'batch': [{'id': 'b37f0713-1089-44ec-99d2-12bd69d6b4ed', 'type': 'trace-create', 'body': {'id': 'litellm-test-41e731d8-eec7-484d-a123-3f5369227667', 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 43, 673224, tzinfo=datetime.timezone.utc), 'name': 'litellm-acompletion', 'userId': 'langfuse_latency_test_user', 'input': {'messages': [{'role': 'user', 'content': 'redacted-by-litellm'}]}, 'output': {'content': 'redacted-by-litellm', 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'tags': []}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 43, 673428, tzinfo=datetime.timezone.utc)}, {'id': '9e0c04ab-30c0-47ec-8507-9877c9bff1c7', 'type': 'generation-create', 'body': {'traceId': 'litellm-test-41e731d8-eec7-484d-a123-3f5369227667', 'name': 'litellm-acompletion', 'startTime': datetime.datetime(2024, 7, 11, 7, 57, 43, 671900), 'metadata': {'litellm_response_cost': 5.4999999999999995e-05, 'cache_hit': False}, 'input': {'messages': [{'role': 'user', 'content': 'redacted-by-litellm'}]}, 'output': {'content': 'redacted-by-litellm', 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'level': <ObservationLevel.DEFAULT: 'DEFAULT'>, 'id': 'time-07-57-43-671900_chatcmpl-84840e13-5f25-494b-a771-43d6dc9f4825', 'endTime': datetime.datetime(2024, 7, 11, 7, 57, 43, 672638), 'completionStartTime': datetime.datetime(2024, 7, 11, 7, 57, 43, 672638), 'model': 'gpt-3.5-turbo', 'modelParameters': {'temperature': '0.7', 'stream': False, 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'}, 'usage': {'input': 10, 'output': 20, 'unit': <ModelUsageUnit.TOKENS: 'TOKENS'>, 'totalCost': 5.4999999999999995e-05}}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 43, 673780, tzinfo=datetime.timezone.utc)}], 'metadata': {'batch_size': 2, 'sdk_integration': 'default', 'sdk_name': 'python', 'sdk_version': '2.39.1', 'public_key': 'pk-lf-b3db7e8e-c2f6-4fc7-825c-a541a8fbe003'}}-making request: {"batch": [{"id": "b37f0713-1089-44ec-99d2-12bd69d6b4ed", "type": "trace-create", "body": {"id": "litellm-test-41e731d8-eec7-484d-a123-3f5369227667", "timestamp": "2024-07-11T14:57:43.673224Z", "name": "litellm-acompletion", "userId": "langfuse_latency_test_user", "input": {"messages": [{"role": "user", "content": "redacted-by-litellm"}]}, "output": {"content": "redacted-by-litellm", "role": "assistant", "tool_calls": null, "function_call": null}, "tags": []}, "timestamp": "2024-07-11T14:57:43.673428Z"}, {"id": "9e0c04ab-30c0-47ec-8507-9877c9bff1c7", "type": "generation-create", "body": {"traceId": "litellm-test-41e731d8-eec7-484d-a123-3f5369227667", "name": "litellm-acompletion", "startTime": "2024-07-11T07:57:43.671900-07:00", "metadata": {"litellm_response_cost": 5.4999999999999995e-05, "cache_hit": false}, "input": {"messages": [{"role": "user", "content": "redacted-by-litellm"}]}, "output": {"content": "redacted-by-litellm", "role": "assistant", "tool_calls": null, "function_call": null}, "level": "DEFAULT", "id": "time-07-57-43-671900_chatcmpl-84840e13-5f25-494b-a771-43d6dc9f4825", "endTime": "2024-07-11T07:57:43.672638-07:00", "completionStartTime": "2024-07-11T07:57:43.672638-07:00", "model": "gpt-3.5-turbo", "modelParameters": {"temperature": "0.7", "stream": false, "max_tokens": 5, "user": "langfuse_latency_test_user", "extra_body": "{}"}, "usage": {"input": 10, "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05}}, "timestamp": "2024-07-11T14:57:43.673780Z"}], "metadata": {"batch_size": 2, "sdk_integration": "default", "sdk_name": "python", "sdk_version": "2.39.1", "public_key": "pk-lf-b3db7e8e-c2f6-4fc7-825c-a541a8fbe003"}} to https://us.cloud.langfuse.com/api/public/ingestion-~0 items in the Langfuse queue-received response: {"errors":[],"successes":[{"id":"b37f0713-1089-44ec-99d2-12bd69d6b4ed","status":201},{"id":"9e0c04ab-30c0-47ec-8507-9877c9bff1c7","status":201}]}-successfully uploaded batch of 2 items-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-Getting observations... None, None, None, None, litellm-test-41e731d8-eec7-484d-a123-3f5369227667, None, None, None, GENERATION-~0 items in the Langfuse queue-~0 items in the Langfuse queue-consumer is running...-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-flushing queue-successfully flushed about 0 items.-~0 items in the Langfuse queue-Creating trace id='litellm-test-e079602a-d96c-4178-a423-f45d4e8c2d21' timestamp=datetime.datetime(2024, 7, 11, 14, 57, 46, 266724, tzinfo=datetime.timezone.utc) name='litellm-acompletion' user_id='langfuse_latency_test_user' input={'messages': [{'role': 'user', 'content': 'redacted-by-litellm'}]} output={'content': 'redacted-by-litellm', 'role': 'assistant', 'tool_calls': None, 'function_call': None} session_id=None release=None version=None metadata=None tags=[] public=None-item size 497-Creating generation trace_id='litellm-test-e079602a-d96c-4178-a423-f45d4e8c2d21' name='litellm-acompletion' start_time=datetime.datetime(2024, 7, 11, 7, 57, 46, 11092) metadata={'litellm_response_cost': 4.1e-05, 'cache_hit': False} input={'messages': [{'role': 'user', 'content': 'redacted-by-litellm'}]} output={'content': 'redacted-by-litellm', 'role': 'assistant', 'tool_calls': None, 'function_call': None} level=<ObservationLevel.DEFAULT: 'DEFAULT'> status_message=None parent_observation_id=None version=None id='time-07-57-46-011092_chatcmpl-bbd13417-0ddd-46d0-a4fc-ded148ff2ae9' end_time=datetime.datetime(2024, 7, 11, 7, 57, 46, 22279) completion_start_time=datetime.datetime(2024, 7, 11, 7, 57, 46, 13610) model='gpt-3.5-turbo' model_parameters={'temperature': '0.7', 'stream': True, 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'} usage=Usage(input=14, output=10, total=None, unit=<ModelUsageUnit.TOKENS: 'TOKENS'>, input_cost=None, output_cost=None, total_cost=4.1e-05) prompt_name=None prompt_version=None...-item size 968-~0 items in the Langfuse queue-uploading batch of 2 items-uploading data: {'batch': [{'id': 'b05c61c3-d1c8-49fa-8bbe-7c9d1a9aba87', 'type': 'trace-create', 'body': {'id': 'litellm-test-e079602a-d96c-4178-a423-f45d4e8c2d21', 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 46, 266724, tzinfo=datetime.timezone.utc), 'name': 'litellm-acompletion', 'userId': 'langfuse_latency_test_user', 'input': {'messages': [{'role': 'user', 'content': 'redacted-by-litellm'}]}, 'output': {'content': 'redacted-by-litellm', 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'tags': []}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 46, 267376, tzinfo=datetime.timezone.utc)}, {'id': 'f1e3d54a-800e-40ba-8214-50fa8ba1a40e', 'type': 'generation-create', 'body': {'traceId': 'litellm-test-e079602a-d96c-4178-a423-f45d4e8c2d21', 'name': 'litellm-acompletion', 'startTime': datetime.datetime(2024, 7, 11, 7, 57, 46, 11092), 'metadata': {'litellm_response_cost': 4.1e-05, 'cache_hit': False}, 'input': {'messages': [{'role': 'user', 'content': 'redacted-by-litellm'}]}, 'output': {'content': 'redacted-by-litellm', 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'level': <ObservationLevel.DEFAULT: 'DEFAULT'>, 'id': 'time-07-57-46-011092_chatcmpl-bbd13417-0ddd-46d0-a4fc-ded148ff2ae9', 'endTime': datetime.datetime(2024, 7, 11, 7, 57, 46, 22279), 'completionStartTime': datetime.datetime(2024, 7, 11, 7, 57, 46, 13610), 'model': 'gpt-3.5-turbo', 'modelParameters': {'temperature': '0.7', 'stream': True, 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'}, 'usage': {'input': 14, 'output': 10, 'unit': <ModelUsageUnit.TOKENS: 'TOKENS'>, 'totalCost': 4.1e-05}}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 46, 268553, tzinfo=datetime.timezone.utc)}], 'metadata': {'batch_size': 2, 'sdk_integration': 'default', 'sdk_name': 'python', 'sdk_version': '2.39.1', 'public_key': 'pk-lf-b3db7e8e-c2f6-4fc7-825c-a541a8fbe003'}}-making request: {"batch": [{"id": "b05c61c3-d1c8-49fa-8bbe-7c9d1a9aba87", "type": "trace-create", "body": {"id": "litellm-test-e079602a-d96c-4178-a423-f45d4e8c2d21", "timestamp": "2024-07-11T14:57:46.266724Z", "name": "litellm-acompletion", "userId": "langfuse_latency_test_user", "input": {"messages": [{"role": "user", "content": "redacted-by-litellm"}]}, "output": {"content": "redacted-by-litellm", "role": "assistant", "tool_calls": null, "function_call": null}, "tags": []}, "timestamp": "2024-07-11T14:57:46.267376Z"}, {"id": "f1e3d54a-800e-40ba-8214-50fa8ba1a40e", "type": "generation-create", "body": {"traceId": "litellm-test-e079602a-d96c-4178-a423-f45d4e8c2d21", "name": "litellm-acompletion", "startTime": "2024-07-11T07:57:46.011092-07:00", "metadata": {"litellm_response_cost": 4.1e-05, "cache_hit": false}, "input": {"messages": [{"role": "user", "content": "redacted-by-litellm"}]}, "output": {"content": "redacted-by-litellm", "role": "assistant", "tool_calls": null, "function_call": null}, "level": "DEFAULT", "id": "time-07-57-46-011092_chatcmpl-bbd13417-0ddd-46d0-a4fc-ded148ff2ae9", "endTime": "2024-07-11T07:57:46.022279-07:00", "completionStartTime": "2024-07-11T07:57:46.013610-07:00", "model": "gpt-3.5-turbo", "modelParameters": {"temperature": "0.7", "stream": true, "max_tokens": 5, "user": "langfuse_latency_test_user", "extra_body": "{}"}, "usage": {"input": 14, "output": 10, "unit": "TOKENS", "totalCost": 4.1e-05}}, "timestamp": "2024-07-11T14:57:46.268553Z"}], "metadata": {"batch_size": 2, "sdk_integration": "default", "sdk_name": "python", "sdk_version": "2.39.1", "public_key": "pk-lf-b3db7e8e-c2f6-4fc7-825c-a541a8fbe003"}} to https://us.cloud.langfuse.com/api/public/ingestion-received response: {"errors":[],"successes":[{"id":"b05c61c3-d1c8-49fa-8bbe-7c9d1a9aba87","status":201},{"id":"f1e3d54a-800e-40ba-8214-50fa8ba1a40e","status":201}]}-successfully uploaded batch of 2 items-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-Getting observations... None, None, None, None, litellm-test-e079602a-d96c-4178-a423-f45d4e8c2d21, None, None, None, GENERATION-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-consumer is running...-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-Creating trace id='litellm-test-624f61d8-2604-406a-bd85-f7eb9f9878e4' timestamp=datetime.datetime(2024, 7, 11, 14, 57, 48, 311181, tzinfo=datetime.timezone.utc) name='litellm-acompletion' user_id='langfuse_latency_test_user' input='redacted-by-litellm' output='redacted-by-litellm' session_id=None release=None version=None metadata=None tags=[] public=None-Creating generation trace_id='litellm-test-624f61d8-2604-406a-bd85-f7eb9f9878e4' name='litellm-acompletion' start_time=datetime.datetime(2024, 7, 11, 7, 57, 48, 309974) metadata={'litellm_response_cost': 5.4999999999999995e-05, 'cache_hit': False} input='redacted-by-litellm' output='redacted-by-litellm' level=<ObservationLevel.DEFAULT: 'DEFAULT'> status_message=None parent_observation_id=None version=None id='time-07-57-48-309974_chatcmpl-9feff8c8-bddc-45fa-b3e7-3e83768589b4' end_time=datetime.datetime(2024, 7, 11, 7, 57, 48, 310635) completion_start_time=datetime.datetime(2024, 7, 11, 7, 57, 48, 310635) model='gpt-3.5-turbo' model_parameters={'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'} usage=Usage(input=10, output=20, total=None, unit=<ModelUsageUnit.TOKENS: 'TOKENS'>, input_cost=None, output_cost=None, total_cost=5.4999999999999995e-05) prompt_name=None prompt_version=None...-item size 375-item size 860-flushing queue-successfully flushed about 0 items.-~0 items in the Langfuse queue-uploading batch of 2 items-uploading data: {'batch': [{'id': '414f3e3a-35b4-4e24-a64a-e9303de94d0d', 'type': 'trace-create', 'body': {'id': 'litellm-test-624f61d8-2604-406a-bd85-f7eb9f9878e4', 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 48, 311181, tzinfo=datetime.timezone.utc), 'name': 'litellm-acompletion', 'userId': 'langfuse_latency_test_user', 'input': 'redacted-by-litellm', 'output': 'redacted-by-litellm', 'tags': []}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 48, 311330, tzinfo=datetime.timezone.utc)}, {'id': '890d05df-f7e0-4c1a-ad49-6b1704c36136', 'type': 'generation-create', 'body': {'traceId': 'litellm-test-624f61d8-2604-406a-bd85-f7eb9f9878e4', 'name': 'litellm-acompletion', 'startTime': datetime.datetime(2024, 7, 11, 7, 57, 48, 309974), 'metadata': {'litellm_response_cost': 5.4999999999999995e-05, 'cache_hit': False}, 'input': 'redacted-by-litellm', 'output': 'redacted-by-litellm', 'level': <ObservationLevel.DEFAULT: 'DEFAULT'>, 'id': 'time-07-57-48-309974_chatcmpl-9feff8c8-bddc-45fa-b3e7-3e83768589b4', 'endTime': datetime.datetime(2024, 7, 11, 7, 57, 48, 310635), 'completionStartTime': datetime.datetime(2024, 7, 11, 7, 57, 48, 310635), 'model': 'gpt-3.5-turbo', 'modelParameters': {'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'}, 'usage': {'input': 10, 'output': 20, 'unit': <ModelUsageUnit.TOKENS: 'TOKENS'>, 'totalCost': 5.4999999999999995e-05}}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 48, 311640, tzinfo=datetime.timezone.utc)}], 'metadata': {'batch_size': 2, 'sdk_integration': 'default', 'sdk_name': 'python', 'sdk_version': '2.39.1', 'public_key': 'pk-lf-b3db7e8e-c2f6-4fc7-825c-a541a8fbe003'}}-~0 items in the Langfuse queue-making request: {"batch": [{"id": "414f3e3a-35b4-4e24-a64a-e9303de94d0d", "type": "trace-create", "body": {"id": "litellm-test-624f61d8-2604-406a-bd85-f7eb9f9878e4", "timestamp": "2024-07-11T14:57:48.311181Z", "name": "litellm-acompletion", "userId": "langfuse_latency_test_user", "input": "redacted-by-litellm", "output": "redacted-by-litellm", "tags": []}, "timestamp": "2024-07-11T14:57:48.311330Z"}, {"id": "890d05df-f7e0-4c1a-ad49-6b1704c36136", "type": "generation-create", "body": {"traceId": "litellm-test-624f61d8-2604-406a-bd85-f7eb9f9878e4", "name": "litellm-acompletion", "startTime": "2024-07-11T07:57:48.309974-07:00", "metadata": {"litellm_response_cost": 5.4999999999999995e-05, "cache_hit": false}, "input": "redacted-by-litellm", "output": "redacted-by-litellm", "level": "DEFAULT", "id": "time-07-57-48-309974_chatcmpl-9feff8c8-bddc-45fa-b3e7-3e83768589b4", "endTime": "2024-07-11T07:57:48.310635-07:00", "completionStartTime": "2024-07-11T07:57:48.310635-07:00", "model": "gpt-3.5-turbo", "modelParameters": {"temperature": "0.7", "max_tokens": 5, "user": "langfuse_latency_test_user", "extra_body": "{}"}, "usage": {"input": 10, "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05}}, "timestamp": "2024-07-11T14:57:48.311640Z"}], "metadata": {"batch_size": 2, "sdk_integration": "default", "sdk_name": "python", "sdk_version": "2.39.1", "public_key": "pk-lf-b3db7e8e-c2f6-4fc7-825c-a541a8fbe003"}} to https://us.cloud.langfuse.com/api/public/ingestion-~0 items in the Langfuse queue-~0 items in the Langfuse queue-received response: {"errors":[],"successes":[{"id":"414f3e3a-35b4-4e24-a64a-e9303de94d0d","status":201},{"id":"890d05df-f7e0-4c1a-ad49-6b1704c36136","status":201}]}-successfully uploaded batch of 2 items-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-Getting trace litellm-test-624f61d8-2604-406a-bd85-f7eb9f9878e4-~0 items in the Langfuse queue-~0 items in the Langfuse queue-Getting observations... None, None, None, None, litellm-test-624f61d8-2604-406a-bd85-f7eb9f9878e4, None, None, None, GENERATION-~0 items in the Langfuse queue-`litellm.set_verbose` is deprecated. Please set `os.environ['LITELLM_LOG'] = 'DEBUG'` for debug logs.-Creating trace id='litellm-test-0020e225-3dc4-43d5-b75f-468a042e51be' timestamp=datetime.datetime(2024, 7, 11, 14, 57, 50, 588244, tzinfo=datetime.timezone.utc) name='litellm-acompletion' user_id='langfuse_latency_test_user' input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': 'This is a test response', 'role': 'assistant', 'tool_calls': None, 'function_call': None} session_id=None release=None version=None metadata=None tags=[] public=None-Creating generation trace_id='litellm-test-0020e225-3dc4-43d5-b75f-468a042e51be' name='litellm-acompletion' start_time=datetime.datetime(2024, 7, 11, 7, 57, 50, 585058) metadata={'litellm_response_cost': 5.4999999999999995e-05, 'cache_hit': False} input={'messages': [{'role': 'user', 'content': 'This is a test'}]} output={'content': 'This is a test response', 'role': 'assistant', 'tool_calls': None, 'function_call': None} level=<ObservationLevel.DEFAULT: 'DEFAULT'> status_message=None parent_observation_id=None version=None id='time-07-57-50-585058_chatcmpl-05db6b0b-4847-4b87-a8ef-7d90bef7f81c' end_time=datetime.datetime(2024, 7, 11, 7, 57, 50, 587160) completion_start_time=datetime.datetime(2024, 7, 11, 7, 57, 50, 587160) model='gpt-3.5-turbo' model_parameters={'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'} usage=Usage(input=10, output=20, total=None, unit=<ModelUsageUnit.TOKENS: 'TOKENS'>, input_cost=None, output_cost=None, total_cost=5.4999999999999995e-05) prompt_name=None prompt_version=None...-item size 496-item size 981-flushing queue-successfully flushed about 0 items.-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-uploading batch of 2 items-uploading data: {'batch': [{'id': '27ef4895-21f0-4485-b9e6-083e1d64e5fa', 'type': 'trace-create', 'body': {'id': 'litellm-test-0020e225-3dc4-43d5-b75f-468a042e51be', 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 50, 588244, tzinfo=datetime.timezone.utc), 'name': 'litellm-acompletion', 'userId': 'langfuse_latency_test_user', 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': 'This is a test response', 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'tags': []}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 50, 589416, tzinfo=datetime.timezone.utc)}, {'id': '8f77e83d-d4b4-4890-b37a-bf04611f2ed6', 'type': 'generation-create', 'body': {'traceId': 'litellm-test-0020e225-3dc4-43d5-b75f-468a042e51be', 'name': 'litellm-acompletion', 'startTime': datetime.datetime(2024, 7, 11, 7, 57, 50, 585058), 'metadata': {'litellm_response_cost': 5.4999999999999995e-05, 'cache_hit': False}, 'input': {'messages': [{'role': 'user', 'content': 'This is a test'}]}, 'output': {'content': 'This is a test response', 'role': 'assistant', 'tool_calls': None, 'function_call': None}, 'level': <ObservationLevel.DEFAULT: 'DEFAULT'>, 'id': 'time-07-57-50-585058_chatcmpl-05db6b0b-4847-4b87-a8ef-7d90bef7f81c', 'endTime': datetime.datetime(2024, 7, 11, 7, 57, 50, 587160), 'completionStartTime': datetime.datetime(2024, 7, 11, 7, 57, 50, 587160), 'model': 'gpt-3.5-turbo', 'modelParameters': {'temperature': '0.7', 'max_tokens': 5, 'user': 'langfuse_latency_test_user', 'extra_body': '{}'}, 'usage': {'input': 10, 'output': 20, 'unit': <ModelUsageUnit.TOKENS: 'TOKENS'>, 'totalCost': 5.4999999999999995e-05}}, 'timestamp': datetime.datetime(2024, 7, 11, 14, 57, 50, 590731, tzinfo=datetime.timezone.utc)}], 'metadata': {'batch_size': 2, 'sdk_integration': 'default', 'sdk_name': 'python', 'sdk_version': '2.39.1', 'public_key': 'pk-lf-b3db7e8e-c2f6-4fc7-825c-a541a8fbe003'}}-making request: {"batch": [{"id": "27ef4895-21f0-4485-b9e6-083e1d64e5fa", "type": "trace-create", "body": {"id": "litellm-test-0020e225-3dc4-43d5-b75f-468a042e51be", "timestamp": "2024-07-11T14:57:50.588244Z", "name": "litellm-acompletion", "userId": "langfuse_latency_test_user", "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "This is a test response", "role": "assistant", "tool_calls": null, "function_call": null}, "tags": []}, "timestamp": "2024-07-11T14:57:50.589416Z"}, {"id": "8f77e83d-d4b4-4890-b37a-bf04611f2ed6", "type": "generation-create", "body": {"traceId": "litellm-test-0020e225-3dc4-43d5-b75f-468a042e51be", "name": "litellm-acompletion", "startTime": "2024-07-11T07:57:50.585058-07:00", "metadata": {"litellm_response_cost": 5.4999999999999995e-05, "cache_hit": false}, "input": {"messages": [{"role": "user", "content": "This is a test"}]}, "output": {"content": "This is a test response", "role": "assistant", "tool_calls": null, "function_call": null}, "level": "DEFAULT", "id": "time-07-57-50-585058_chatcmpl-05db6b0b-4847-4b87-a8ef-7d90bef7f81c", "endTime": "2024-07-11T07:57:50.587160-07:00", "completionStartTime": "2024-07-11T07:57:50.587160-07:00", "model": "gpt-3.5-turbo", "modelParameters": {"temperature": "0.7", "max_tokens": 5, "user": "langfuse_latency_test_user", "extra_body": "{}"}, "usage": {"input": 10, "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05}}, "timestamp": "2024-07-11T14:57:50.590731Z"}], "metadata": {"batch_size": 2, "sdk_integration": "default", "sdk_name": "python", "sdk_version": "2.39.1", "public_key": "pk-lf-b3db7e8e-c2f6-4fc7-825c-a541a8fbe003"}} to https://us.cloud.langfuse.com/api/public/ingestion-~0 items in the Langfuse queue-received response: {"errors":[],"successes":[{"id":"27ef4895-21f0-4485-b9e6-083e1d64e5fa","status":201},{"id":"8f77e83d-d4b4-4890-b37a-bf04611f2ed6","status":201}]}-successfully uploaded batch of 2 items-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-Getting trace litellm-test-0020e225-3dc4-43d5-b75f-468a042e51be-~0 items in the Langfuse queue-Getting observations... None, None, None, None, litellm-test-0020e225-3dc4-43d5-b75f-468a042e51be, None, None, None, GENERATION-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-joining 1 consumer threads-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-consumer thread 0 joined-joining 1 consumer threads-~0 items in the Langfuse queue-~0 items in the Langfuse queue-~0 items in the Langfuse queue-consumer thread 0 joined-joining 1 consumer threads-~0 items in the Langfuse queue-~0 items in the Langfuse queue-consumer thread 0 joined-joining 1 consumer threads-~0 items in the Langfuse queue-consumer thread 0 joineddiff --git a/litellm/tests/litellm_uuid.txt b/litellm/tests/litellm_uuid.txtdeleted file mode 100644index e4252e46d0c..00000000000--- a/litellm/tests/litellm_uuid.txt+++ /dev/null@@ -1 +0,0 @@-80888ede-4881-4876-ab3f-765d47282e66\ No newline at end of filediff --git a/litellm/tests/.litellm_cache/cache.db b/tests/local_testing/.litellm_cache/cache.dbsimilarity index 100%rename from litellm/tests/.litellm_cache/cache.dbrename to tests/local_testing/.litellm_cache/cache.dbdiff --git a/litellm/tests/adroit-crow-413218-bc47f303efc9.json b/tests/local_testing/adroit-crow-413218-bc47f303efc9.jsonsimilarity index 100%rename from litellm/tests/adroit-crow-413218-bc47f303efc9.jsonrename to tests/local_testing/adroit-crow-413218-bc47f303efc9.jsondiff --git a/litellm/tests/azure_fine_tune.jsonl b/tests/local_testing/azure_fine_tune.jsonlsimilarity index 100%rename from litellm/tests/azure_fine_tune.jsonlrename to tests/local_testing/azure_fine_tune.jsonldiff --git a/litellm/tests/batch_job_results_furniture.jsonl b/tests/local_testing/batch_job_results_furniture.jsonlsimilarity index 100%rename from litellm/tests/batch_job_results_furniture.jsonlrename to tests/local_testing/batch_job_results_furniture.jsonldiff --git a/litellm/tests/conftest.py b/tests/local_testing/conftest.pysimilarity index 100%rename from litellm/tests/conftest.pyrename to tests/local_testing/conftest.pydiff --git a/litellm/tests/data_map.txt b/tests/local_testing/data_map.txtsimilarity index 100%rename from litellm/tests/data_map.txtrename to tests/local_testing/data_map.txtdiff --git a/litellm/tests/eagle.wav b/tests/local_testing/eagle.wavsimilarity index 100%rename from litellm/tests/eagle.wavrename to tests/local_testing/eagle.wavdiff --git a/litellm/tests/example_config_yaml/aliases_config.yaml b/tests/local_testing/example_config_yaml/aliases_config.yamlsimilarity index 100%rename from litellm/tests/example_config_yaml/aliases_config.yamlrename to tests/local_testing/example_config_yaml/aliases_config.yamldiff --git a/litellm/tests/example_config_yaml/azure_config.yaml b/tests/local_testing/example_config_yaml/azure_config.yamlsimilarity index 100%rename from litellm/tests/example_config_yaml/azure_config.yamlrename to tests/local_testing/example_config_yaml/azure_config.yamldiff --git a/litellm/tests/example_config_yaml/cache_no_params.yaml b/tests/local_testing/example_config_yaml/cache_no_params.yamlsimilarity index 100%rename from litellm/tests/example_config_yaml/cache_no_params.yamlrename to tests/local_testing/example_config_yaml/cache_no_params.yamldiff --git a/litellm/tests/example_config_yaml/cache_with_params.yaml b/tests/local_testing/example_config_yaml/cache_with_params.yamlsimilarity index 100%rename from litellm/tests/example_config_yaml/cache_with_params.yamlrename to tests/local_testing/example_config_yaml/cache_with_params.yamldiff --git a/litellm/tests/example_config_yaml/langfuse_config.yaml b/tests/local_testing/example_config_yaml/langfuse_config.yamlsimilarity index 100%rename from litellm/tests/example_config_yaml/langfuse_config.yamlrename to tests/local_testing/example_config_yaml/langfuse_config.yamldiff --git a/litellm/tests/example_config_yaml/load_balancer.yaml b/tests/local_testing/example_config_yaml/load_balancer.yamlsimilarity index 100%rename from litellm/tests/example_config_yaml/load_balancer.yamlrename to tests/local_testing/example_config_yaml/load_balancer.yamldiff --git a/litellm/tests/example_config_yaml/opentelemetry_config.yaml b/tests/local_testing/example_config_yaml/opentelemetry_config.yamlsimilarity index 100%rename from litellm/tests/example_config_yaml/opentelemetry_config.yamlrename to tests/local_testing/example_config_yaml/opentelemetry_config.yamldiff --git a/litellm/tests/example_config_yaml/simple_config.yaml b/tests/local_testing/example_config_yaml/simple_config.yamlsimilarity index 100%rename from litellm/tests/example_config_yaml/simple_config.yamlrename to tests/local_testing/example_config_yaml/simple_config.yamldiff --git a/litellm/tests/gettysburg.wav b/tests/local_testing/gettysburg.wavsimilarity index 100%rename from litellm/tests/gettysburg.wavrename to tests/local_testing/gettysburg.wavdiff --git a/litellm/tests/large_text.py b/tests/local_testing/large_text.pysimilarity index 100%rename from litellm/tests/large_text.pyrename to tests/local_testing/large_text.pydiff --git a/litellm/tests/messages_with_counts.py b/tests/local_testing/messages_with_counts.pysimilarity index 90%rename from litellm/tests/messages_with_counts.pyrename to tests/local_testing/messages_with_counts.pyindex d91138e3fe5..da27a975520 100644--- a/litellm/tests/messages_with_counts.py+++ b/tests/local_testing/messages_with_counts.py@@ -3,7 +3,7 @@ system_message_short = {"role": "system","content": "You are a bot.",},- "count": 12+ "count": 12,}system_message = {@@ -11,7 +11,7 @@ system_message = {"role": "system","content": "You are a helpful, pattern-following assistant that translates corporate jargon into plain English.",},- "count": 25+ "count": 25,}system_message_long = {@@ -19,7 +19,7 @@ system_message_long = {"role": "system","content": "Assistant helps the company employees with their healthcare plan questions, and questions about the employee handbook. Be brief in your answers.",},- "count": 31+ "count": 31,}system_message_unicode = {@@ -27,7 +27,7 @@ system_message_unicode = {"role": "system","content": "á",},- "count": 8+ "count": 8,}system_message_with_name = {@@ -36,7 +36,7 @@ system_message_with_name = {"name": "example_user","content": "New synergies will help drive top-line growth.",},- "count": 20+ "count": 20,}user_message = {@@ -44,7 +44,7 @@ user_message = {"role": "user","content": "Hello, how are you?",},- "count": 13+ "count": 13,}user_message_unicode = {@@ -52,7 +52,7 @@ user_message_unicode = {"role": "user","content": "á",},- "count": 8+ "count": 8,}user_message_perf = {@@ -60,7 +60,7 @@ user_message_perf = {"role": "user","content": "What happens in a performance review?",},- "count": 14+ "count": 14,}assistant_message_perf = {@@ -68,7 +68,7 @@ assistant_message_perf = {"role": "assistant","content": "During the performance review at Contoso Electronics, the supervisor will discuss the employee's performance over the past year and provide feedback on areas for improvement. They will also provide an opportunity for the employee to discuss their goals and objectives for the upcoming year. The review is a two-way dialogue between managers and employees, and employees will receive a written summary of their performance review which will include a rating of their performance, feedback, and goals and objectives for the upcoming year [employee_handbook-3.pdf].",},- "count": 106+ "count": 106,}assistant_message_perf_short = {@@ -76,7 +76,7 @@ assistant_message_perf_short = {"role": "assistant","content": "The supervisor will discuss the employee's performance and provide feedback on areas for improvement. They will also provide an opportunity for the employee to discuss their goals and objectives for the upcoming year. The review is a two-way dialogue between managers and employees, and employees will receive a written summary of their performance review which will include a rating of their performance, feedback, and goals for the upcoming year [employee_handbook-3.pdf].",},- "count": 91+ "count": 91,}user_message_dresscode = {@@ -84,7 +84,7 @@ user_message_dresscode = {"role": "user","content": "Is there a dress code?",},- "count": 13+ "count": 13,}assistant_message_dresscode = {@@ -92,7 +92,7 @@ assistant_message_dresscode = {"role": "assistant","content": "Yes, there is a dress code at Contoso Electronics. Look sharp! [employee_handbook-1.pdf]",},- "count": 30+ "count": 30,}user_message_pm = {@@ -100,7 +100,7 @@ user_message_pm = {"role": "user","content": "What does a Product Manager do?",},- "count": 14+ "count": 14,}text_and_image_message = {@@ -117,11 +117,10 @@ text_and_image_message = {},],},- "count": 266+ "count": 266,}-search_sources_toolchoice_auto = {"system_message": {"role": "system",@@ -217,7 +216,12 @@ integer_enum = {"function": {"name": "data_demonstration","description": "This is the main function description",- "parameters": {"type": "object", "properties": {"integer_enum": {"type": "integer", "enum": [-1, 1]}}},+ "parameters": {+ "type": "object",+ "properties": {+ "integer_enum": {"type": "integer", "enum": [-1, 1]}+ },+ },},}],@@ -237,7 +241,12 @@ integer_enum_tool_choice_name = {"function": {"name": "data_demonstration","description": "This is the main function description",- "parameters": {"type": "object", "properties": {"integer_enum": {"type": "integer", "enum": [-1, 1]}}},+ "parameters": {+ "type": "object",+ "properties": {+ "integer_enum": {"type": "integer", "enum": [-1, 1]}+ },+ },},}],@@ -280,7 +289,10 @@ no_parameters_tool_choice_name = {},}],- "tool_choice": {"type": "function", "function": {"name": "search_sources"}}, # 2 tokens for "search_sources"+ "tool_choice": {+ "type": "function",+ "function": {"name": "search_sources"},+ }, # 2 tokens for "search_sources""count": 51,}@@ -295,7 +307,10 @@ no_parameter_description_or_required = {"function": {"name": "search_sources","description": "Retrieve sources from the Azure AI Search index",- "parameters": {"type": "object", "properties": {"search_query": {"type": "string"}}},+ "parameters": {+ "type": "object",+ "properties": {"search_query": {"type": "string"}},+ },},}],@@ -424,7 +439,12 @@ inner_object_with_enum_only = {"object_1": {"type": "object","description": "The object data type as a property",- "properties": {"string_2a": {"type": "string", "enum": ["Happy", "Sad"]}},+ "properties": {+ "string_2a": {+ "type": "string",+ "enum": ["Happy", "Sad"],+ }+ },}},"required": ["object_1"],@@ -467,7 +487,10 @@ inner_object_with_enum = {"type": "object","description": "The object data type as a property","properties": {- "string_2a": {"type": "string", "enum": ["Happy", "Sad"]},+ "string_2a": {+ "type": "string",+ "enum": ["Happy", "Sad"],+ },"string_2b": {"type": "string","description": "Description in a second object is lost",@@ -517,14 +540,20 @@ inner_object_and_string = {"type": "object","description": "The object data type as a property","properties": {- "string_2a": {"type": "string", "enum": ["Happy", "Sad"]},+ "string_2a": {+ "type": "string",+ "enum": ["Happy", "Sad"],+ },"string_2b": {"type": "string","description": "Description in a second object is lost",},},},- "string_1": {"type": "string", "description": "Not required gets a question mark"},+ "string_1": {+ "type": "string",+ "description": "Not required gets a question mark",+ },},"required": ["object_1"],},@@ -677,12 +706,10 @@ MESSAGES_TEXT = [user_message_pm,assistant_message_perf,assistant_message_perf_short,- assistant_message_dresscode+ assistant_message_dresscode,]-MESSAGES_WITH_IMAGES = [- text_and_image_message-]+MESSAGES_WITH_IMAGES = [text_and_image_message]MESSAGES_WITH_TOOLS = [inner_object,@@ -704,4 +731,3 @@ MESSAGES_WITH_TOOLS = [no_type,null,]-diff --git a/litellm/tests/model_cost.json b/tests/local_testing/model_cost.jsonsimilarity index 100%rename from litellm/tests/model_cost.jsonrename to tests/local_testing/model_cost.jsondiff --git a/litellm/tests/openai_batch_completions.jsonl b/tests/local_testing/openai_batch_completions.jsonlsimilarity index 100%rename from litellm/tests/openai_batch_completions.jsonlrename to tests/local_testing/openai_batch_completions.jsonldiff --git a/litellm/tests/openai_batch_completions_router.jsonl b/tests/local_testing/openai_batch_completions_router.jsonlsimilarity index 100%rename from litellm/tests/openai_batch_completions_router.jsonlrename to tests/local_testing/openai_batch_completions_router.jsonldiff --git a/litellm/tests/speech_vertex.mp3 b/tests/local_testing/speech_vertex.mp3similarity index 100%rename from litellm/tests/speech_vertex.mp3rename to tests/local_testing/speech_vertex.mp3diff --git a/litellm/tests/stream_chunk_testdata.py b/tests/local_testing/stream_chunk_testdata.pysimilarity index 100%rename from litellm/tests/stream_chunk_testdata.pyrename to tests/local_testing/stream_chunk_testdata.pydiff --git a/litellm/tests/test_acompletion.py b/tests/local_testing/test_acompletion.pysimilarity index 100%rename from litellm/tests/test_acompletion.pyrename to tests/local_testing/test_acompletion.pydiff --git a/litellm/tests/test_acooldowns_router.py b/tests/local_testing/test_acooldowns_router.pysimilarity index 100%rename from litellm/tests/test_acooldowns_router.pyrename to tests/local_testing/test_acooldowns_router.pydiff --git a/litellm/tests/test_add_function_to_prompt.py b/tests/local_testing/test_add_function_to_prompt.pysimilarity index 100%rename from litellm/tests/test_add_function_to_prompt.pyrename to tests/local_testing/test_add_function_to_prompt.pydiff --git a/litellm/tests/test_add_update_models.py b/tests/local_testing/test_add_update_models.pysimilarity index 100%rename from litellm/tests/test_add_update_models.pyrename to tests/local_testing/test_add_update_models.pydiff --git a/litellm/tests/test_alangfuse.py b/tests/local_testing/test_alangfuse.pysimilarity index 100%rename from litellm/tests/test_alangfuse.pyrename to tests/local_testing/test_alangfuse.pydiff --git a/litellm/tests/test_alerting.py b/tests/local_testing/test_alerting.pysimilarity index 100%rename from litellm/tests/test_alerting.pyrename to tests/local_testing/test_alerting.pydiff --git a/litellm/tests/test_amazing_s3_logs.py b/tests/local_testing/test_amazing_s3_logs.pysimilarity index 100%rename from litellm/tests/test_amazing_s3_logs.pyrename to tests/local_testing/test_amazing_s3_logs.pydiff --git a/litellm/tests/test_amazing_vertex_completion.py b/tests/local_testing/test_amazing_vertex_completion.pysimilarity index 100%rename from litellm/tests/test_amazing_vertex_completion.pyrename to tests/local_testing/test_amazing_vertex_completion.pydiff --git a/litellm/tests/test_anthropic_prompt_caching.py b/tests/local_testing/test_anthropic_prompt_caching.pysimilarity index 100%rename from litellm/tests/test_anthropic_prompt_caching.pyrename to tests/local_testing/test_anthropic_prompt_caching.pydiff --git a/litellm/tests/test_aproxy_startup.py b/tests/local_testing/test_aproxy_startup.pysimilarity index 100%rename from litellm/tests/test_aproxy_startup.pyrename to tests/local_testing/test_aproxy_startup.pydiff --git a/litellm/tests/test_arize_ai.py b/tests/local_testing/test_arize_ai.pysimilarity index 100%rename from litellm/tests/test_arize_ai.pyrename to tests/local_testing/test_arize_ai.pydiff --git a/litellm/tests/test_assistants.py b/tests/local_testing/test_assistants.pysimilarity index 100%rename from litellm/tests/test_assistants.pyrename to tests/local_testing/test_assistants.pydiff --git a/litellm/tests/test_async_fn.py b/tests/local_testing/test_async_fn.pysimilarity index 100%rename from litellm/tests/test_async_fn.pyrename to tests/local_testing/test_async_fn.pydiff --git a/litellm/tests/test_async_opentelemetry.py b/tests/local_testing/test_async_opentelemetry.pysimilarity index 100%rename from litellm/tests/test_async_opentelemetry.pyrename to tests/local_testing/test_async_opentelemetry.pydiff --git a/litellm/tests/test_audio_speech.py b/tests/local_testing/test_audio_speech.pysimilarity index 100%rename from litellm/tests/test_audio_speech.pyrename to tests/local_testing/test_audio_speech.pydiff --git a/litellm/tests/test_auth_checks.py b/tests/local_testing/test_auth_checks.pysimilarity index 100%rename from litellm/tests/test_auth_checks.pyrename to tests/local_testing/test_auth_checks.pydiff --git a/litellm/tests/test_azure_content_safety.py b/tests/local_testing/test_azure_content_safety.pysimilarity index 100%rename from litellm/tests/test_azure_content_safety.pyrename to tests/local_testing/test_azure_content_safety.pydiff --git a/litellm/tests/test_azure_openai.py b/tests/local_testing/test_azure_openai.pysimilarity index 100%rename from litellm/tests/test_azure_openai.pyrename to tests/local_testing/test_azure_openai.pydiff --git a/litellm/tests/test_azure_perf.py b/tests/local_testing/test_azure_perf.pysimilarity index 100%rename from litellm/tests/test_azure_perf.pyrename to tests/local_testing/test_azure_perf.pydiff --git a/litellm/tests/test_bad_params.py b/tests/local_testing/test_bad_params.pysimilarity index 100%rename from litellm/tests/test_bad_params.pyrename to tests/local_testing/test_bad_params.pydiff --git a/litellm/tests/test_banned_keyword_list.py b/tests/local_testing/test_banned_keyword_list.pysimilarity index 100%rename from litellm/tests/test_banned_keyword_list.pyrename to tests/local_testing/test_banned_keyword_list.pydiff --git a/litellm/tests/test_batch_completion_return_exceptions.py b/tests/local_testing/test_batch_completion_return_exceptions.pysimilarity index 98%rename from litellm/tests/test_batch_completion_return_exceptions.pyrename to tests/local_testing/test_batch_completion_return_exceptions.pyindex 4e285771fab..2d2ea8675ec 100644--- a/litellm/tests/test_batch_completion_return_exceptions.py+++ b/tests/local_testing/test_batch_completion_return_exceptions.py@@ -1,4 +1,5 @@"""https://github.com/BerriAI/litellm/pull/3397/commits/a7ec1772b1457594d3af48cdcb0a382279b841c7#diff-44852387ceb00aade916d6b314dfd5d180499e54f35209ae9c07179febe08b4b."""+"""Test batch_completion's return_exceptions."""import litellm@@ -14,4 +15,4 @@ def test_batch_completion_return_exceptions_true():api_key="sk_xxx", # deliberately set invalid key)- assert isinstance(res[0], litellm.exceptions.AuthenticationError)\ No newline at end of file+ assert isinstance(res[0], litellm.exceptions.AuthenticationError)diff --git a/litellm/tests/test_batch_completions.py b/tests/local_testing/test_batch_completions.pysimilarity index 100%rename from litellm/tests/test_batch_completions.pyrename to tests/local_testing/test_batch_completions.pydiff --git a/litellm/tests/test_bedrock_completion.py b/tests/local_testing/test_bedrock_completion.pysimilarity index 100%rename from litellm/tests/test_bedrock_completion.pyrename to tests/local_testing/test_bedrock_completion.pydiff --git a/litellm/tests/test_blocked_user_list.py b/tests/local_testing/test_blocked_user_list.pysimilarity index 100%rename from litellm/tests/test_blocked_user_list.pyrename to tests/local_testing/test_blocked_user_list.pydiff --git a/litellm/tests/test_braintrust.py b/tests/local_testing/test_braintrust.pysimilarity index 100%rename from litellm/tests/test_braintrust.pyrename to tests/local_testing/test_braintrust.pydiff --git a/litellm/tests/test_budget_manager.py b/tests/local_testing/test_budget_manager.pysimilarity index 100%rename from litellm/tests/test_budget_manager.pyrename to tests/local_testing/test_budget_manager.pydiff --git a/litellm/tests/test_caching.py b/tests/local_testing/test_caching.pysimilarity index 100%rename from litellm/tests/test_caching.pyrename to tests/local_testing/test_caching.pydiff --git a/litellm/tests/test_caching_ssl.py b/tests/local_testing/test_caching_ssl.pysimilarity index 100%rename from litellm/tests/test_caching_ssl.pyrename to tests/local_testing/test_caching_ssl.pydiff --git a/litellm/tests/test_clarifai_completion.py b/tests/local_testing/test_clarifai_completion.pysimilarity index 100%rename from litellm/tests/test_clarifai_completion.pyrename to tests/local_testing/test_clarifai_completion.pydiff --git a/litellm/tests/test_class.py b/tests/local_testing/test_class.pysimilarity index 100%rename from litellm/tests/test_class.pyrename to tests/local_testing/test_class.pydiff --git a/litellm/tests/test_clickhouse_logger.py b/tests/local_testing/test_clickhouse_logger.pysimilarity index 100%rename from litellm/tests/test_clickhouse_logger.pyrename to tests/local_testing/test_clickhouse_logger.pydiff --git a/litellm/tests/test_cohere_completion.py b/tests/local_testing/test_cohere_completion.pysimilarity index 100%rename from litellm/tests/test_cohere_completion.pyrename to tests/local_testing/test_cohere_completion.pydiff --git a/litellm/tests/test_completion.py b/tests/local_testing/test_completion.pysimilarity index 100%rename from litellm/tests/test_completion.pyrename to tests/local_testing/test_completion.pydiff --git a/litellm/tests/test_completion_cost.py b/tests/local_testing/test_completion_cost.pysimilarity index 100%rename from litellm/tests/test_completion_cost.pyrename to tests/local_testing/test_completion_cost.pydiff --git a/litellm/tests/test_completion_with_retries.py b/tests/local_testing/test_completion_with_retries.pysimilarity index 100%rename from litellm/tests/test_completion_with_retries.pyrename to tests/local_testing/test_completion_with_retries.pydiff --git a/litellm/tests/test_config.py b/tests/local_testing/test_config.pysimilarity index 100%rename from litellm/tests/test_config.pyrename to tests/local_testing/test_config.pydiff --git a/litellm/tests/test_configs/custom_auth.py b/tests/local_testing/test_configs/custom_auth.pysimilarity index 100%rename from litellm/tests/test_configs/custom_auth.pyrename to tests/local_testing/test_configs/custom_auth.pydiff --git a/litellm/tests/test_configs/custom_callbacks.py b/tests/local_testing/test_configs/custom_callbacks.pysimilarity index 100%rename from litellm/tests/test_configs/custom_callbacks.pyrename to tests/local_testing/test_configs/custom_callbacks.pydiff --git a/litellm/tests/test_configs/test_bad_config.yaml b/tests/local_testing/test_configs/test_bad_config.yamlsimilarity index 100%rename from litellm/tests/test_configs/test_bad_config.yamlrename to tests/local_testing/test_configs/test_bad_config.yamldiff --git a/litellm/tests/test_configs/test_cloudflare_azure_with_cache_config.yaml b/tests/local_testing/test_configs/test_cloudflare_azure_with_cache_config.yamlsimilarity index 100%rename from litellm/tests/test_configs/test_cloudflare_azure_with_cache_config.yamlrename to tests/local_testing/test_configs/test_cloudflare_azure_with_cache_config.yamldiff --git a/litellm/tests/test_configs/test_config.yaml b/tests/local_testing/test_configs/test_config.yamlsimilarity index 100%rename from litellm/tests/test_configs/test_config.yamlrename to tests/local_testing/test_configs/test_config.yamldiff --git a/litellm/tests/test_configs/test_config_custom_auth.yaml b/tests/local_testing/test_configs/test_config_custom_auth.yamlsimilarity index 100%rename from litellm/tests/test_configs/test_config_custom_auth.yamlrename to tests/local_testing/test_configs/test_config_custom_auth.yamldiff --git a/litellm/tests/test_configs/test_config_no_auth.yaml b/tests/local_testing/test_configs/test_config_no_auth.yamlsimilarity index 100%rename from litellm/tests/test_configs/test_config_no_auth.yamlrename to tests/local_testing/test_configs/test_config_no_auth.yamldiff --git a/litellm/tests/test_configs/test_custom_logger.yaml b/tests/local_testing/test_configs/test_custom_logger.yamlsimilarity index 100%rename from litellm/tests/test_configs/test_custom_logger.yamlrename to tests/local_testing/test_configs/test_custom_logger.yamldiff --git a/litellm/tests/test_configs/test_guardrails_config.yaml b/tests/local_testing/test_configs/test_guardrails_config.yamlsimilarity index 100%rename from litellm/tests/test_configs/test_guardrails_config.yamlrename to tests/local_testing/test_configs/test_guardrails_config.yamldiff --git a/litellm/tests/test_cost_calc.py b/tests/local_testing/test_cost_calc.pysimilarity index 100%rename from litellm/tests/test_cost_calc.pyrename to tests/local_testing/test_cost_calc.pydiff --git a/litellm/tests/test_custom_api_logger.py b/tests/local_testing/test_custom_api_logger.pysimilarity index 100%rename from litellm/tests/test_custom_api_logger.pyrename to tests/local_testing/test_custom_api_logger.pydiff --git a/litellm/tests/test_custom_callback_input.py b/tests/local_testing/test_custom_callback_input.pysimilarity index 100%rename from litellm/tests/test_custom_callback_input.pyrename to tests/local_testing/test_custom_callback_input.pydiff --git a/litellm/tests/test_custom_callback_router.py b/tests/local_testing/test_custom_callback_router.pysimilarity index 100%rename from litellm/tests/test_custom_callback_router.pyrename to tests/local_testing/test_custom_callback_router.pydiff --git a/litellm/tests/test_custom_llm.py b/tests/local_testing/test_custom_llm.pysimilarity index 100%rename from litellm/tests/test_custom_llm.pyrename to tests/local_testing/test_custom_llm.pydiff --git a/litellm/tests/test_custom_logger.py b/tests/local_testing/test_custom_logger.pysimilarity index 100%rename from litellm/tests/test_custom_logger.pyrename to tests/local_testing/test_custom_logger.pydiff --git a/litellm/tests/test_datadog.py b/tests/local_testing/test_datadog.pysimilarity index 100%rename from litellm/tests/test_datadog.pyrename to tests/local_testing/test_datadog.pydiff --git a/litellm/tests/test_deployed_proxy_keygen.py b/tests/local_testing/test_deployed_proxy_keygen.pysimilarity index 100%rename from litellm/tests/test_deployed_proxy_keygen.pyrename to tests/local_testing/test_deployed_proxy_keygen.pydiff --git a/litellm/tests/test_dynamic_rate_limit_handler.py b/tests/local_testing/test_dynamic_rate_limit_handler.pysimilarity index 100%rename from litellm/tests/test_dynamic_rate_limit_handler.pyrename to tests/local_testing/test_dynamic_rate_limit_handler.pydiff --git a/litellm/tests/test_dynamodb_logs.py b/tests/local_testing/test_dynamodb_logs.pysimilarity index 100%rename from litellm/tests/test_dynamodb_logs.pyrename to tests/local_testing/test_dynamodb_logs.pydiff --git a/litellm/tests/test_embedding.py b/tests/local_testing/test_embedding.pysimilarity index 100%rename from litellm/tests/test_embedding.pyrename to tests/local_testing/test_embedding.pydiff --git a/litellm/tests/test_exceptions.py b/tests/local_testing/test_exceptions.pysimilarity index 100%rename from litellm/tests/test_exceptions.pyrename to tests/local_testing/test_exceptions.pydiff --git a/litellm/tests/test_file_types.py b/tests/local_testing/test_file_types.pysimilarity index 100%rename from litellm/tests/test_file_types.pyrename to tests/local_testing/test_file_types.pydiff --git a/litellm/tests/test_fine_tuning_api.py b/tests/local_testing/test_fine_tuning_api.pysimilarity index 100%rename from litellm/tests/test_fine_tuning_api.pyrename to tests/local_testing/test_fine_tuning_api.pydiff --git a/litellm/tests/test_function_call_parsing.py b/tests/local_testing/test_function_call_parsing.pysimilarity index 100%rename from litellm/tests/test_function_call_parsing.pyrename to tests/local_testing/test_function_call_parsing.pydiff --git a/litellm/tests/test_function_calling.py b/tests/local_testing/test_function_calling.pysimilarity index 100%rename from litellm/tests/test_function_calling.pyrename to tests/local_testing/test_function_calling.pydiff --git a/litellm/tests/test_function_setup.py b/tests/local_testing/test_function_setup.pysimilarity index 100%rename from litellm/tests/test_function_setup.pyrename to tests/local_testing/test_function_setup.pydiff --git a/litellm/tests/test_gcs_bucket.py b/tests/local_testing/test_gcs_bucket.pysimilarity index 100%rename from litellm/tests/test_gcs_bucket.pyrename to tests/local_testing/test_gcs_bucket.pydiff --git a/litellm/tests/test_get_llm_provider.py b/tests/local_testing/test_get_llm_provider.pysimilarity index 100%rename from litellm/tests/test_get_llm_provider.pyrename to tests/local_testing/test_get_llm_provider.pydiff --git a/litellm/tests/test_get_model_file.py b/tests/local_testing/test_get_model_file.pysimilarity index 100%rename from litellm/tests/test_get_model_file.pyrename to tests/local_testing/test_get_model_file.pydiff --git a/litellm/tests/test_get_model_info.py b/tests/local_testing/test_get_model_info.pysimilarity index 100%rename from litellm/tests/test_get_model_info.pyrename to tests/local_testing/test_get_model_info.pydiff --git a/litellm/tests/test_get_model_list.py b/tests/local_testing/test_get_model_list.pysimilarity index 100%rename from litellm/tests/test_get_model_list.pyrename to tests/local_testing/test_get_model_list.pydiff --git a/litellm/tests/test_get_optional_params_embeddings.py b/tests/local_testing/test_get_optional_params_embeddings.pysimilarity index 100%rename from litellm/tests/test_get_optional_params_embeddings.pyrename to tests/local_testing/test_get_optional_params_embeddings.pydiff --git a/litellm/tests/test_get_optional_params_functions_not_supported.py b/tests/local_testing/test_get_optional_params_functions_not_supported.pysimilarity index 100%rename from litellm/tests/test_get_optional_params_functions_not_supported.pyrename to tests/local_testing/test_get_optional_params_functions_not_supported.pydiff --git a/litellm/tests/test_get_secret.py b/tests/local_testing/test_get_secret.pysimilarity index 100%rename from litellm/tests/test_get_secret.pyrename to tests/local_testing/test_get_secret.pydiff --git a/litellm/tests/test_google_ai_studio_gemini.py b/tests/local_testing/test_google_ai_studio_gemini.pysimilarity index 100%rename from litellm/tests/test_google_ai_studio_gemini.pyrename to tests/local_testing/test_google_ai_studio_gemini.pydiff --git a/litellm/tests/test_guardrails_config.py b/tests/local_testing/test_guardrails_config.pysimilarity index 100%rename from litellm/tests/test_guardrails_config.pyrename to tests/local_testing/test_guardrails_config.pydiff --git a/litellm/tests/test_health_check.py b/tests/local_testing/test_health_check.pysimilarity index 100%rename from litellm/tests/test_health_check.pyrename to tests/local_testing/test_health_check.pydiff --git a/litellm/tests/test_helicone_integration.py b/tests/local_testing/test_helicone_integration.pysimilarity index 96%rename from litellm/tests/test_helicone_integration.pyrename to tests/local_testing/test_helicone_integration.pyindex 8e1f0a94e93..968a9aa5b10 100644--- a/litellm/tests/test_helicone_integration.py+++ b/tests/local_testing/test_helicone_integration.py@@ -16,10 +16,11 @@ from litellm import completionlitellm.num_retries = 3litellm.success_callback = ["helicone"]os.environ["HELICONE_DEBUG"] = "True"-os.environ['LITELLM_LOG'] = 'DEBUG'+os.environ["LITELLM_LOG"] = "DEBUG"import pytest+def pre_helicone_setup():"""Set up the logging for the 'pre_helicone_setup' function.@@ -89,6 +90,7 @@ def create_async_task(**completion_kwargs):completion_args.update(completion_kwargs)return asyncio.create_task(litellm.acompletion(**completion_args))+@pytest.mark.asyncio@pytest.mark.skipif(condition=not os.environ.get("OPENAI_API_KEY", False),@@ -96,13 +98,12 @@ def create_async_task(**completion_kwargs):)async def test_helicone_logging_metadata():import uuid+litellm.success_callback = ["helicone"]request_id = str(uuid.uuid4())- trace_common_metadata = {- "Helicone-Property-Request-Id": request_id- }-+ trace_common_metadata = {"Helicone-Property-Request-Id": request_id}+metadata = copy.deepcopy(trace_common_metadata)metadata["Helicone-Property-Conversation"] = "support_issue"metadata["Helicone-Auth"] = os.getenv("HELICONE_API_KEY")diff --git a/litellm/tests/test_hf_prompt_templates.py b/tests/local_testing/test_hf_prompt_templates.pysimilarity index 100%rename from litellm/tests/test_hf_prompt_templates.pyrename to tests/local_testing/test_hf_prompt_templates.pydiff --git a/litellm/tests/test_image_generation.py b/tests/local_testing/test_image_generation.pysimilarity index 100%rename from litellm/tests/test_image_generation.pyrename to tests/local_testing/test_image_generation.pydiff --git a/litellm/tests/test_img_resize.py b/tests/local_testing/test_img_resize.pysimilarity index 100%rename from litellm/tests/test_img_resize.pyrename to tests/local_testing/test_img_resize.pydiff --git a/litellm/tests/test_jwt.py b/tests/local_testing/test_jwt.pysimilarity index 100%rename from litellm/tests/test_jwt.pyrename to tests/local_testing/test_jwt.pydiff --git a/litellm/tests/test_key_generate_dynamodb.py b/tests/local_testing/test_key_generate_dynamodb.pysimilarity index 100%rename from litellm/tests/test_key_generate_dynamodb.pyrename to tests/local_testing/test_key_generate_dynamodb.pydiff --git a/litellm/tests/test_key_generate_prisma.py b/tests/local_testing/test_key_generate_prisma.pysimilarity index 100%rename from litellm/tests/test_key_generate_prisma.pyrename to tests/local_testing/test_key_generate_prisma.pydiff --git a/litellm/tests/test_lakera_ai_prompt_injection.py b/tests/local_testing/test_lakera_ai_prompt_injection.pysimilarity index 100%rename from litellm/tests/test_lakera_ai_prompt_injection.pyrename to tests/local_testing/test_lakera_ai_prompt_injection.pydiff --git a/litellm/tests/test_langchain_ChatLiteLLM.py b/tests/local_testing/test_langchain_ChatLiteLLM.pysimilarity index 100%rename from litellm/tests/test_langchain_ChatLiteLLM.pyrename to tests/local_testing/test_langchain_ChatLiteLLM.pydiff --git a/litellm/tests/test_langsmith.py b/tests/local_testing/test_langsmith.pysimilarity index 100%rename from litellm/tests/test_langsmith.pyrename to tests/local_testing/test_langsmith.pydiff --git a/litellm/tests/test_least_busy_routing.py b/tests/local_testing/test_least_busy_routing.pysimilarity index 100%rename from litellm/tests/test_least_busy_routing.pyrename to tests/local_testing/test_least_busy_routing.pydiff --git a/litellm/tests/test_litellm_max_budget.py b/tests/local_testing/test_litellm_max_budget.pysimilarity index 100%rename from litellm/tests/test_litellm_max_budget.pyrename to tests/local_testing/test_litellm_max_budget.pydiff --git a/litellm/tests/test_llm_guard.py b/tests/local_testing/test_llm_guard.pysimilarity index 100%rename from litellm/tests/test_llm_guard.pyrename to tests/local_testing/test_llm_guard.pydiff --git a/litellm/tests/test_load_test_router_s3.py b/tests/local_testing/test_load_test_router_s3.pysimilarity index 100%rename from litellm/tests/test_load_test_router_s3.pyrename to tests/local_testing/test_load_test_router_s3.pydiff --git a/litellm/tests/test_loadtest_router.py b/tests/local_testing/test_loadtest_router.pysimilarity index 100%rename from litellm/tests/test_loadtest_router.pyrename to tests/local_testing/test_loadtest_router.pydiff --git a/litellm/tests/test_logfire.py b/tests/local_testing/test_logfire.pysimilarity index 100%rename from litellm/tests/test_logfire.pyrename to tests/local_testing/test_logfire.pydiff --git a/litellm/tests/test_logging.py b/tests/local_testing/test_logging.pysimilarity index 100%rename from litellm/tests/test_logging.pyrename to tests/local_testing/test_logging.pydiff --git a/litellm/tests/test_longer_context_fallback.py b/tests/local_testing/test_longer_context_fallback.pysimilarity index 100%rename from litellm/tests/test_longer_context_fallback.pyrename to tests/local_testing/test_longer_context_fallback.pydiff --git a/litellm/tests/test_lowest_cost_routing.py b/tests/local_testing/test_lowest_cost_routing.pysimilarity index 100%rename from litellm/tests/test_lowest_cost_routing.pyrename to tests/local_testing/test_lowest_cost_routing.pydiff --git a/litellm/tests/test_lowest_latency_routing.py b/tests/local_testing/test_lowest_latency_routing.pysimilarity index 100%rename from litellm/tests/test_lowest_latency_routing.pyrename to tests/local_testing/test_lowest_latency_routing.pydiff --git a/litellm/tests/test_lunary.py b/tests/local_testing/test_lunary.pysimilarity index 100%rename from litellm/tests/test_lunary.pyrename to tests/local_testing/test_lunary.pydiff --git a/litellm/tests/test_max_tpm_rpm_limiter.py b/tests/local_testing/test_max_tpm_rpm_limiter.pysimilarity index 100%rename from litellm/tests/test_max_tpm_rpm_limiter.pyrename to tests/local_testing/test_max_tpm_rpm_limiter.pydiff --git a/litellm/tests/test_mem_usage.py b/tests/local_testing/test_mem_usage.pysimilarity index 100%rename from litellm/tests/test_mem_usage.pyrename to tests/local_testing/test_mem_usage.pydiff --git a/litellm/tests/test_mock_request.py b/tests/local_testing/test_mock_request.pysimilarity index 100%rename from litellm/tests/test_mock_request.pyrename to tests/local_testing/test_mock_request.pydiff --git a/litellm/tests/test_model_alias_map.py b/tests/local_testing/test_model_alias_map.pysimilarity index 100%rename from litellm/tests/test_model_alias_map.pyrename to tests/local_testing/test_model_alias_map.pydiff --git a/litellm/tests/test_model_max_token_adjust.py b/tests/local_testing/test_model_max_token_adjust.pysimilarity index 100%rename from litellm/tests/test_model_max_token_adjust.pyrename to tests/local_testing/test_model_max_token_adjust.pydiff --git a/litellm/tests/test_model_response_typing/server.py b/tests/local_testing/test_model_response_typing/server.pysimilarity index 100%rename from litellm/tests/test_model_response_typing/server.pyrename to tests/local_testing/test_model_response_typing/server.pydiff --git a/litellm/tests/test_model_response_typing/test.py b/tests/local_testing/test_model_response_typing/test.pysimilarity index 100%rename from litellm/tests/test_model_response_typing/test.pyrename to tests/local_testing/test_model_response_typing/test.pydiff --git a/litellm/tests/test_multiple_deployments.py b/tests/local_testing/test_multiple_deployments.pysimilarity index 100%rename from litellm/tests/test_multiple_deployments.pyrename to tests/local_testing/test_multiple_deployments.pydiff --git a/litellm/tests/test_ollama.py b/tests/local_testing/test_ollama.pysimilarity index 100%rename from litellm/tests/test_ollama.pyrename to tests/local_testing/test_ollama.pydiff --git a/litellm/tests/test_ollama_local.py b/tests/local_testing/test_ollama_local.pysimilarity index 100%rename from litellm/tests/test_ollama_local.pyrename to tests/local_testing/test_ollama_local.pydiff --git a/litellm/tests/test_ollama_local_chat.py b/tests/local_testing/test_ollama_local_chat.pysimilarity index 100%rename from litellm/tests/test_ollama_local_chat.pyrename to tests/local_testing/test_ollama_local_chat.pydiff --git a/litellm/tests/test_openai_batches_and_files.py b/tests/local_testing/test_openai_batches_and_files.pysimilarity index 100%rename from litellm/tests/test_openai_batches_and_files.pyrename to tests/local_testing/test_openai_batches_and_files.pydiff --git a/litellm/tests/test_openai_moderations_hook.py b/tests/local_testing/test_openai_moderations_hook.pysimilarity index 100%rename from litellm/tests/test_openai_moderations_hook.pyrename to tests/local_testing/test_openai_moderations_hook.pydiff --git a/litellm/tests/test_parallel_request_limiter.py b/tests/local_testing/test_parallel_request_limiter.pysimilarity index 100%rename from litellm/tests/test_parallel_request_limiter.pyrename to tests/local_testing/test_parallel_request_limiter.pydiff --git a/litellm/tests/test_pass_through_endpoints.py b/tests/local_testing/test_pass_through_endpoints.pysimilarity index 100%rename from litellm/tests/test_pass_through_endpoints.pyrename to tests/local_testing/test_pass_through_endpoints.pydiff --git a/litellm/tests/test_presidio_masking.py b/tests/local_testing/test_presidio_masking.pysimilarity index 100%rename from litellm/tests/test_presidio_masking.pyrename to tests/local_testing/test_presidio_masking.pydiff --git a/litellm/tests/test_profiling_router.py b/tests/local_testing/test_profiling_router.pysimilarity index 100%rename from litellm/tests/test_profiling_router.pyrename to tests/local_testing/test_profiling_router.pydiff --git a/litellm/tests/test_prometheus.py b/tests/local_testing/test_prometheus.pysimilarity index 100%rename from litellm/tests/test_prometheus.pyrename to tests/local_testing/test_prometheus.pydiff --git a/litellm/tests/test_prometheus_service.py b/tests/local_testing/test_prometheus_service.pysimilarity index 100%rename from litellm/tests/test_prometheus_service.pyrename to tests/local_testing/test_prometheus_service.pydiff --git a/litellm/tests/test_prompt_factory.py b/tests/local_testing/test_prompt_factory.pysimilarity index 100%rename from litellm/tests/test_prompt_factory.pyrename to tests/local_testing/test_prompt_factory.pydiff --git a/litellm/tests/test_prompt_injection_detection.py b/tests/local_testing/test_prompt_injection_detection.pysimilarity index 100%rename from litellm/tests/test_prompt_injection_detection.pyrename to tests/local_testing/test_prompt_injection_detection.pydiff --git a/litellm/tests/test_promptlayer_integration.py b/tests/local_testing/test_promptlayer_integration.pysimilarity index 99%rename from litellm/tests/test_promptlayer_integration.pyrename to tests/local_testing/test_promptlayer_integration.pyindex 7935a69b6a5..f557657576f 100644--- a/litellm/tests/test_promptlayer_integration.py+++ b/tests/local_testing/test_promptlayer_integration.py@@ -100,6 +100,7 @@ def test_promptlayer_logging_with_metadata_tags():except Exception as e:pytest.fail(f"Error occurred: {e}")+# def test_chat_openai():# try:# response = completion(model="replicate/llama-2-70b-chat:2c1608e18606fad2812020dc541930f2d0495ce32eee50074220b87300bc16e1",diff --git a/litellm/tests/test_provider_specific_config.py b/tests/local_testing/test_provider_specific_config.pysimilarity index 100%rename from litellm/tests/test_provider_specific_config.pyrename to tests/local_testing/test_provider_specific_config.pydiff --git a/litellm/tests/test_proxy_custom_auth.py b/tests/local_testing/test_proxy_custom_auth.pysimilarity index 100%rename from litellm/tests/test_proxy_custom_auth.pyrename to tests/local_testing/test_proxy_custom_auth.pydiff --git a/litellm/tests/test_proxy_custom_logger.py b/tests/local_testing/test_proxy_custom_logger.pysimilarity index 100%rename from litellm/tests/test_proxy_custom_logger.pyrename to tests/local_testing/test_proxy_custom_logger.pydiff --git a/litellm/tests/test_proxy_encrypt_decrypt.py b/tests/local_testing/test_proxy_encrypt_decrypt.pysimilarity index 100%rename from litellm/tests/test_proxy_encrypt_decrypt.pyrename to tests/local_testing/test_proxy_encrypt_decrypt.pydiff --git a/litellm/tests/test_proxy_exception_mapping.py b/tests/local_testing/test_proxy_exception_mapping.pysimilarity index 100%rename from litellm/tests/test_proxy_exception_mapping.pyrename to tests/local_testing/test_proxy_exception_mapping.pydiff --git a/litellm/tests/test_proxy_gunicorn.py b/tests/local_testing/test_proxy_gunicorn.pysimilarity index 100%rename from litellm/tests/test_proxy_gunicorn.pyrename to tests/local_testing/test_proxy_gunicorn.pydiff --git a/litellm/tests/test_proxy_pass_user_config.py b/tests/local_testing/test_proxy_pass_user_config.pysimilarity index 100%rename from litellm/tests/test_proxy_pass_user_config.pyrename to tests/local_testing/test_proxy_pass_user_config.pydiff --git a/litellm/tests/test_proxy_reject_logging.py b/tests/local_testing/test_proxy_reject_logging.pysimilarity index 100%rename from litellm/tests/test_proxy_reject_logging.pyrename to tests/local_testing/test_proxy_reject_logging.pydiff --git a/litellm/tests/test_proxy_routes.py b/tests/local_testing/test_proxy_routes.pysimilarity index 100%rename from litellm/tests/test_proxy_routes.pyrename to tests/local_testing/test_proxy_routes.pydiff --git a/litellm/tests/test_proxy_server.py b/tests/local_testing/test_proxy_server.pysimilarity index 100%rename from litellm/tests/test_proxy_server.pyrename to tests/local_testing/test_proxy_server.pydiff --git a/litellm/tests/test_proxy_server_caching.py b/tests/local_testing/test_proxy_server_caching.pysimilarity index 100%rename from litellm/tests/test_proxy_server_caching.pyrename to tests/local_testing/test_proxy_server_caching.pydiff --git a/litellm/tests/test_proxy_server_cost.py b/tests/local_testing/test_proxy_server_cost.pysimilarity index 100%rename from litellm/tests/test_proxy_server_cost.pyrename to tests/local_testing/test_proxy_server_cost.pydiff --git a/litellm/tests/test_proxy_server_keys.py b/tests/local_testing/test_proxy_server_keys.pysimilarity index 100%rename from litellm/tests/test_proxy_server_keys.pyrename to tests/local_testing/test_proxy_server_keys.pydiff --git a/litellm/tests/test_proxy_server_langfuse.py b/tests/local_testing/test_proxy_server_langfuse.pysimilarity index 100%rename from litellm/tests/test_proxy_server_langfuse.pyrename to tests/local_testing/test_proxy_server_langfuse.pydiff --git a/litellm/tests/test_proxy_server_spend.py b/tests/local_testing/test_proxy_server_spend.pysimilarity index 100%rename from litellm/tests/test_proxy_server_spend.pyrename to tests/local_testing/test_proxy_server_spend.pydiff --git a/litellm/tests/test_proxy_setting_guardrails.py b/tests/local_testing/test_proxy_setting_guardrails.pysimilarity index 100%rename from litellm/tests/test_proxy_setting_guardrails.pyrename to tests/local_testing/test_proxy_setting_guardrails.pydiff --git a/litellm/tests/test_proxy_token_counter.py b/tests/local_testing/test_proxy_token_counter.pysimilarity index 100%rename from litellm/tests/test_proxy_token_counter.pyrename to tests/local_testing/test_proxy_token_counter.pydiff --git a/litellm/tests/test_pydantic.py b/tests/local_testing/test_pydantic.pysimilarity index 100%rename from litellm/tests/test_pydantic.pyrename to tests/local_testing/test_pydantic.pydiff --git a/litellm/tests/test_pydantic_namespaces.py b/tests/local_testing/test_pydantic_namespaces.pysimilarity index 60%rename from litellm/tests/test_pydantic_namespaces.pyrename to tests/local_testing/test_pydantic_namespaces.pyindex 8314216e1a5..61c5bd6b44f 100644--- a/litellm/tests/test_pydantic_namespaces.py+++ b/tests/local_testing/test_pydantic_namespaces.py@@ -1,10 +1,13 @@import warningsimport pytest+def test_namespace_conflict_warning():with warnings.catch_warnings(record=True) as recorded_warnings:warnings.simplefilter("always") # Capture all warningsimport litellm# Check that no warning with the specific message was raised- assert not any("conflict with protected namespace" in str(w.message) for w in recorded_warnings), "Test failed: 'conflict with protected namespace' warning was encountered!"+ assert not any(+ "conflict with protected namespace" in str(w.message) for w in recorded_warnings+ ), "Test failed: 'conflict with protected namespace' warning was encountered!"diff --git a/litellm/tests/test_python_38.py b/tests/local_testing/test_python_38.pysimilarity index 100%rename from litellm/tests/test_python_38.pyrename to tests/local_testing/test_python_38.pydiff --git a/litellm/tests/test_register_model.py b/tests/local_testing/test_register_model.pysimilarity index 100%rename from litellm/tests/test_register_model.pyrename to tests/local_testing/test_register_model.pydiff --git a/litellm/tests/test_rerank.py b/tests/local_testing/test_rerank.pysimilarity index 100%rename from litellm/tests/test_rerank.pyrename to tests/local_testing/test_rerank.pydiff --git a/litellm/tests/test_router.py b/tests/local_testing/test_router.pysimilarity index 100%rename from litellm/tests/test_router.pyrename to tests/local_testing/test_router.pydiff --git a/litellm/tests/test_router_batch_completion.py b/tests/local_testing/test_router_batch_completion.pysimilarity index 100%rename from litellm/tests/test_router_batch_completion.pyrename to tests/local_testing/test_router_batch_completion.pydiff --git a/litellm/tests/test_router_caching.py b/tests/local_testing/test_router_caching.pysimilarity index 100%rename from litellm/tests/test_router_caching.pyrename to tests/local_testing/test_router_caching.pydiff --git a/litellm/tests/test_router_client_init.py b/tests/local_testing/test_router_client_init.pysimilarity index 100%rename from litellm/tests/test_router_client_init.pyrename to tests/local_testing/test_router_client_init.pydiff --git a/litellm/tests/test_router_cooldowns.py b/tests/local_testing/test_router_cooldowns.pysimilarity index 100%rename from litellm/tests/test_router_cooldowns.pyrename to tests/local_testing/test_router_cooldowns.pydiff --git a/litellm/tests/test_router_custom_routing.py b/tests/local_testing/test_router_custom_routing.pysimilarity index 100%rename from litellm/tests/test_router_custom_routing.pyrename to tests/local_testing/test_router_custom_routing.pydiff --git a/litellm/tests/test_router_debug_logs.py b/tests/local_testing/test_router_debug_logs.pysimilarity index 100%rename from litellm/tests/test_router_debug_logs.pyrename to tests/local_testing/test_router_debug_logs.pydiff --git a/litellm/tests/test_router_fallbacks.py b/tests/local_testing/test_router_fallbacks.pysimilarity index 100%rename from litellm/tests/test_router_fallbacks.pyrename to tests/local_testing/test_router_fallbacks.pydiff --git a/litellm/tests/test_router_get_deployments.py b/tests/local_testing/test_router_get_deployments.pysimilarity index 100%rename from litellm/tests/test_router_get_deployments.pyrename to tests/local_testing/test_router_get_deployments.pydiff --git a/litellm/tests/test_router_init.py b/tests/local_testing/test_router_init.pysimilarity index 100%rename from litellm/tests/test_router_init.pyrename to tests/local_testing/test_router_init.pydiff --git a/litellm/tests/test_router_max_parallel_requests.py b/tests/local_testing/test_router_max_parallel_requests.pysimilarity index 100%rename from litellm/tests/test_router_max_parallel_requests.pyrename to tests/local_testing/test_router_max_parallel_requests.pydiff --git a/litellm/tests/test_router_policy_violation.py b/tests/local_testing/test_router_policy_violation.pysimilarity index 100%rename from litellm/tests/test_router_policy_violation.pyrename to tests/local_testing/test_router_policy_violation.pydiff --git a/litellm/tests/test_router_retries.py b/tests/local_testing/test_router_retries.pysimilarity index 100%rename from litellm/tests/test_router_retries.pyrename to tests/local_testing/test_router_retries.pydiff --git a/litellm/tests/test_router_tag_routing.py b/tests/local_testing/test_router_tag_routing.pysimilarity index 100%rename from litellm/tests/test_router_tag_routing.pyrename to tests/local_testing/test_router_tag_routing.pydiff --git a/litellm/tests/test_router_timeout.py b/tests/local_testing/test_router_timeout.pysimilarity index 100%rename from litellm/tests/test_router_timeout.pyrename to tests/local_testing/test_router_timeout.pydiff --git a/litellm/tests/test_router_utils.py b/tests/local_testing/test_router_utils.pysimilarity index 100%rename from litellm/tests/test_router_utils.pyrename to tests/local_testing/test_router_utils.pydiff --git a/litellm/tests/test_router_with_fallbacks.py b/tests/local_testing/test_router_with_fallbacks.pysimilarity index 100%rename from litellm/tests/test_router_with_fallbacks.pyrename to tests/local_testing/test_router_with_fallbacks.pydiff --git a/litellm/tests/test_rules.py b/tests/local_testing/test_rules.pysimilarity index 100%rename from litellm/tests/test_rules.pyrename to tests/local_testing/test_rules.pydiff --git a/litellm/tests/test_sagemaker.py b/tests/local_testing/test_sagemaker.pysimilarity index 100%rename from litellm/tests/test_sagemaker.pyrename to tests/local_testing/test_sagemaker.pydiff --git a/litellm/tests/test_scheduler.py b/tests/local_testing/test_scheduler.pysimilarity index 100%rename from litellm/tests/test_scheduler.pyrename to tests/local_testing/test_scheduler.pydiff --git a/litellm/tests/test_secret_detect_hook.py b/tests/local_testing/test_secret_detect_hook.pysimilarity index 100%rename from litellm/tests/test_secret_detect_hook.pyrename to tests/local_testing/test_secret_detect_hook.pydiff --git a/litellm/tests/test_secret_manager.py b/tests/local_testing/test_secret_manager.pysimilarity index 100%rename from litellm/tests/test_secret_manager.pyrename to tests/local_testing/test_secret_manager.pydiff --git a/litellm/tests/test_simple_shuffle.py b/tests/local_testing/test_simple_shuffle.pysimilarity index 100%rename from litellm/tests/test_simple_shuffle.pyrename to tests/local_testing/test_simple_shuffle.pydiff --git a/litellm/tests/test_spend_calculate_endpoint.py b/tests/local_testing/test_spend_calculate_endpoint.pysimilarity index 100%rename from litellm/tests/test_spend_calculate_endpoint.pyrename to tests/local_testing/test_spend_calculate_endpoint.pydiff --git a/litellm/tests/test_spend_logs.py b/tests/local_testing/test_spend_logs.pysimilarity index 100%rename from litellm/tests/test_spend_logs.pyrename to tests/local_testing/test_spend_logs.pydiff --git a/litellm/tests/test_stream_chunk_builder.py b/tests/local_testing/test_stream_chunk_builder.pysimilarity index 100%rename from litellm/tests/test_stream_chunk_builder.pyrename to tests/local_testing/test_stream_chunk_builder.pydiff --git a/litellm/tests/test_streaming.py b/tests/local_testing/test_streaming.pysimilarity index 100%rename from litellm/tests/test_streaming.pyrename to tests/local_testing/test_streaming.pydiff --git a/litellm/tests/test_supabase_integration.py b/tests/local_testing/test_supabase_integration.pysimilarity index 100%rename from litellm/tests/test_supabase_integration.pyrename to tests/local_testing/test_supabase_integration.pydiff --git a/litellm/tests/test_team_config.py b/tests/local_testing/test_team_config.pysimilarity index 100%rename from litellm/tests/test_team_config.pyrename to tests/local_testing/test_team_config.pydiff --git a/litellm/tests/test_text_completion.py b/tests/local_testing/test_text_completion.pysimilarity index 100%rename from litellm/tests/test_text_completion.pyrename to tests/local_testing/test_text_completion.pydiff --git a/litellm/tests/test_timeout.py b/tests/local_testing/test_timeout.pysimilarity index 100%rename from litellm/tests/test_timeout.pyrename to tests/local_testing/test_timeout.pydiff --git a/litellm/tests/test_together_ai.py b/tests/local_testing/test_together_ai.pysimilarity index 100%rename from litellm/tests/test_together_ai.pyrename to tests/local_testing/test_together_ai.pydiff --git a/litellm/tests/test_token_counter.py b/tests/local_testing/test_token_counter.pysimilarity index 100%rename from litellm/tests/test_token_counter.pyrename to tests/local_testing/test_token_counter.pydiff --git a/litellm/tests/test_tpm_rpm_routing_v2.py b/tests/local_testing/test_tpm_rpm_routing_v2.pysimilarity index 100%rename from litellm/tests/test_tpm_rpm_routing_v2.pyrename to tests/local_testing/test_tpm_rpm_routing_v2.pydiff --git a/litellm/tests/test_traceloop.py b/tests/local_testing/test_traceloop.pysimilarity index 100%rename from litellm/tests/test_traceloop.pyrename to tests/local_testing/test_traceloop.pydiff --git a/litellm/tests/test_triton.py b/tests/local_testing/test_triton.pysimilarity index 86%rename from litellm/tests/test_triton.pyrename to tests/local_testing/test_triton.pyindex cb1e1af28c7..122247c8a02 100644--- a/litellm/tests/test_triton.py+++ b/tests/local_testing/test_triton.py@@ -11,7 +11,9 @@ def test_split_embedding_by_shape_passes():"data": [1, 2, 3, 4, 5, 6],}]- split_output_data = triton.split_embedding_by_shape(data[0]["data"], data[0]["shape"])+ split_output_data = triton.split_embedding_by_shape(+ data[0]["data"], data[0]["shape"]+ )assert split_output_data == [[1, 2, 3], [4, 5, 6]]except Exception as e:pytest.fail(f"An exception occured: {e}")diff --git a/litellm/tests/test_update_spend.py b/tests/local_testing/test_update_spend.pysimilarity index 100%rename from litellm/tests/test_update_spend.pyrename to tests/local_testing/test_update_spend.pydiff --git a/litellm/tests/test_user_api_key_auth.py b/tests/local_testing/test_user_api_key_auth.pysimilarity index 100%rename from litellm/tests/test_user_api_key_auth.pyrename to tests/local_testing/test_user_api_key_auth.pydiff --git a/litellm/tests/test_utils.py b/tests/local_testing/test_utils.pysimilarity index 100%rename from litellm/tests/test_utils.pyrename to tests/local_testing/test_utils.pydiff --git a/litellm/tests/test_validate_environment.py b/tests/local_testing/test_validate_environment.pysimilarity index 100%rename from litellm/tests/test_validate_environment.pyrename to tests/local_testing/test_validate_environment.pydiff --git a/litellm/tests/test_wandb.py b/tests/local_testing/test_wandb.pysimilarity index 100%rename from litellm/tests/test_wandb.pyrename to tests/local_testing/test_wandb.pydiff --git a/litellm/tests/test_whisper.py b/tests/local_testing/test_whisper.pysimilarity index 100%rename from litellm/tests/test_whisper.pyrename to tests/local_testing/test_whisper.pydiff --git a/litellm/tests/user_cost.json b/tests/local_testing/user_cost.jsonsimilarity index 100%rename from litellm/tests/user_cost.jsonrename to tests/local_testing/user_cost.jsondiff --git a/litellm/tests/vertex_ai.jsonl b/tests/local_testing/vertex_ai.jsonlsimilarity index 100%rename from litellm/tests/vertex_ai.jsonlrename to tests/local_testing/vertex_ai.jsonldiff --git a/litellm/tests/vertex_key.json b/tests/local_testing/vertex_key.jsonsimilarity index 100%rename from litellm/tests/vertex_key.jsonrename to tests/local_testing/vertex_key.json