Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

update embed

patcher9683859aafe8f
diff --git a/sdk/python/src/openlit/instrumentation/gpt4all/utils.py b/sdk/python/src/openlit/instrumentation/gpt4all/utils.py
index 095c067b..98310c18 100644
--- a/sdk/python/src/openlit/instrumentation/gpt4all/utils.py
+++ b/sdk/python/src/openlit/instrumentation/gpt4all/utils.py
@@ -188,7 +188,7 @@ def common_embedding_logic(scope, pricing_info, environment, application_name, m
Process embedding request and generate Telemetry
"""
- prompt = format_content(scope._kwargs.get("prompt") or "")
+ prompt = format_content(scope._kwargs.get("text") or "")
request_model = scope._request_model
input_tokens = general_tokens(prompt)