mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-31 16:21:42 +00:00
Merge pull request #4226 from Intellegam/main
Langfuse Integration ignore Embedding Output
This commit is contained in:
@@ -167,7 +167,7 @@ class LangFuseLogger:
|
||||
or isinstance(response_obj, litellm.EmbeddingResponse)
|
||||
):
|
||||
input = prompt
|
||||
output = response_obj["data"]
|
||||
output = None
|
||||
elif response_obj is not None and isinstance(
|
||||
response_obj, litellm.ModelResponse
|
||||
):
|
||||
|
||||
@@ -177,6 +177,7 @@ def create_async_task(**completion_kwargs):
|
||||
"""
|
||||
completion_args = {
|
||||
"model": "azure/chatgpt-v-2",
|
||||
"api_version": "2024-02-01",
|
||||
"messages": [{"role": "user", "content": "This is a test"}],
|
||||
"max_tokens": 5,
|
||||
"temperature": 0.7,
|
||||
|
||||
Reference in New Issue
Block a user