File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def __init__(
105105 initialization_timeout_ms: Timeout for initial connection.
106106 retry_delay_ms: Initial delay between retries.
107107 inactivity_timeout_ms: Max time without SSE events before reconnect.
108- agent: Agent identifier sent in X-Replane -Agent header. Defaults to SDK identifier.
108+ agent: Agent identifier sent in User -Agent header. Defaults to SDK identifier.
109109 debug: Enable debug logging to see all client activity.
110110
111111 Raises:
@@ -409,7 +409,7 @@ async def _connect_stream(self) -> None:
409409 "Authorization" : f"Bearer { self ._sdk_key } " ,
410410 "Accept" : "text/event-stream" ,
411411 "Cache-Control" : "no-cache" ,
412- "X-Replane -Agent" : self ._agent ,
412+ "User -Agent" : self ._agent ,
413413 }
414414
415415 logger .debug ("Connecting to SSE: %s" , url )
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def __init__(
104104 initialization_timeout_ms: Timeout for initial connection.
105105 retry_delay_ms: Initial delay between retries.
106106 inactivity_timeout_ms: Max time without SSE events before reconnect.
107- agent: Agent identifier sent in X-Replane -Agent header. Defaults to SDK identifier.
107+ agent: Agent identifier sent in User -Agent header. Defaults to SDK identifier.
108108 debug: Enable debug logging to see all client activity.
109109 """
110110 # Configure debug logging
@@ -407,7 +407,7 @@ def _connect_stream(self) -> None:
407407 "Content-Type" : "application/json" ,
408408 "Accept" : "text/event-stream" ,
409409 "Cache-Control" : "no-cache" ,
410- "X-Replane -Agent" : self ._agent ,
410+ "User -Agent" : self ._agent ,
411411 }
412412
413413 logger .debug ("Sending POST request to %s" , path )
You can’t perform that action at this time.
0 commit comments