Skip to content

Commit

Permalink
feat(api): expose public api client
Browse files Browse the repository at this point in the history
  • Loading branch information
hassiebp committed Jan 31, 2025
1 parent 658210e commit 45701b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion langfuse/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def __init__(

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

self.client = FernLangfuse(
public_api_client = FernLangfuse(
base_url=self.base_url,
username=public_key,
password=secret_key,
Expand All @@ -300,6 +300,9 @@ def __init__(
timeout=timeout,
)

self.api = public_api_client
self.client = public_api_client # legacy, to be removed in next major release

langfuse_client = LangfuseClient(
public_key=public_key,
secret_key=secret_key,
Expand Down

0 comments on commit 45701b2

Please sign in to comment.