Skip to content

Commit 9497560

Browse files
authored
feat(api): expose public api client (#1098)
1 parent 3d8082c commit 9497560

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

langfuse/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def __init__(
289289

290290
self.httpx_client = httpx_client or httpx.Client(timeout=timeout)
291291

292-
self.client = FernLangfuse(
292+
public_api_client = FernLangfuse(
293293
base_url=self.base_url,
294294
username=public_key,
295295
password=secret_key,
@@ -300,6 +300,9 @@ def __init__(
300300
timeout=timeout,
301301
)
302302

303+
self.api = public_api_client
304+
self.client = public_api_client # legacy, to be removed in next major release
305+
303306
langfuse_client = LangfuseClient(
304307
public_key=public_key,
305308
secret_key=secret_key,

0 commit comments

Comments
 (0)