mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
Merge pull request #4226 from Intellegam/main
Langfuse Integration ignore Embedding Output
This commit is contained in:
commit
8bb459fd95
2 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue