langfuse/langfuse-python

Amazon Bedrock and Authropic Claude issue with indenting model_name

kobrinartem opened this issue · 2 comments

How to set model name so that LangFuse can get it. I have errors:

'model_name'
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/langfuse/callback.py", line 479, in __on_llm_action
model_name = kwargs["invocation_params"]["model_name"]
KeyError: 'model_name'
run not found
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/langfuse/callback.py", line 541, in on_llm_end
raise Exception("run not found")
Exception: run not found

quick fix: #134

@kobrinartem thanks for the contribution. PR is merged and deployed in 1.1.9. Please re-open in case of issues.