File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010from langfuse .api .resources .ingestion .types .sdk_log_event import SdkLogEvent
1111from langfuse .client import (
1212 Langfuse ,
13- SDKIntegrationTypes ,
1413 StatefulSpanClient ,
1514 StatefulTraceClient ,
1615 StateType ,
@@ -124,7 +123,7 @@ def __init__(
124123 if timeout is not None :
125124 args ["timeout" ] = timeout
126125
127- args ["sdk_integration" ] = SDKIntegrationTypes . LANGCHAIN
126+ args ["sdk_integration" ] = "langchain"
128127
129128 self .langfuse = Langfuse (** args )
130129 self .trace = None
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def __init__(
6868 flush_interval : int = 0.5 ,
6969 max_retries = 3 ,
7070 timeout = 15 ,
71- sdk_integration : SDKIntegrationTypes = SDKIntegrationTypes . DEFAULT ,
71+ sdk_integration : str = "default" ,
7272 ):
7373 set_debug = debug if debug else (os .getenv ("LANGFUSE_DEBUG" , "False" ) == "True" )
7474
@@ -130,7 +130,7 @@ def __init__(
130130 "public_key" : public_key ,
131131 "sdk_name" : "python" ,
132132 "sdk_version" : version ,
133- "sdk_integration" : sdk_integration . value ,
133+ "sdk_integration" : sdk_integration ,
134134 }
135135
136136 if threads is not None :
Original file line number Diff line number Diff line change 99from wrapt import wrap_function_wrapper
1010
1111from langfuse import Langfuse
12- from langfuse .client import SDKIntegrationTypes , StatefulGenerationClient
12+ from langfuse .client import StatefulGenerationClient
1313from langfuse .utils import _get_timestamp
1414
1515log = logging .getLogger ("langfuse" )
@@ -435,7 +435,7 @@ def initialize(self):
435435 secret_key = openai .langfuse_secret_key ,
436436 host = openai .langfuse_host ,
437437 debug = openai .langfuse_debug ,
438- sdk_integration = SDKIntegrationTypes . OPENAI ,
438+ sdk_integration = "openai" ,
439439 )
440440 return self ._langfuse
441441
You can’t perform that action at this time.
0 commit comments