Skip to content

Commit 1b7a2ab

Browse files
authored
chore(models): update fern api (#1071)
Co-authored-by: @Julian-Schaefer
1 parent 8d4469f commit 1b7a2ab

File tree

24 files changed

+426
-477
lines changed

24 files changed

+426
-477
lines changed

langfuse/api/README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Finto Python Library
1+
# Langfuse Python Library
22

3-
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Finto%2FPython)
4-
[![pypi](https://img.shields.io/pypi/v/finto)](https://pypi.python.org/pypi/finto)
3+
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Langfuse%2FPython)
4+
[![pypi](https://img.shields.io/pypi/v/langfuse)](https://pypi.python.org/pypi/langfuse)
55

6-
The Finto Python library provides convenient access to the Finto API from Python.
6+
The Langfuse Python library provides convenient access to the Langfuse API from Python.
77

88
## Installation
99

1010
```sh
11-
pip install finto
11+
pip install langfuse
1212
```
1313

1414
## Usage
1515

1616
Instantiate and use the client with the following:
1717

1818
```python
19-
from langfuse.api import CreateCommentRequest
20-
from langfuse.api.client import FernLangfuse
19+
from langfuse import CreateCommentRequest
20+
from langfuse.client import FernLangfuse
2121

2222
client = FernLangfuse(
2323
x_langfuse_sdk_name="YOUR_X_LANGFUSE_SDK_NAME",
@@ -45,8 +45,8 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
4545
```python
4646
import asyncio
4747

48-
from langfuse.api import CreateCommentRequest
49-
from langfuse.api.client import AsyncFernLangfuse
48+
from langfuse import CreateCommentRequest
49+
from langfuse.client import AsyncFernLangfuse
5050

5151
client = AsyncFernLangfuse(
5252
x_langfuse_sdk_name="YOUR_X_LANGFUSE_SDK_NAME",
@@ -116,7 +116,7 @@ The SDK defaults to a 60 second timeout. You can configure this with a timeout o
116116

117117
```python
118118

119-
from langfuse.api.client import FernLangfuse
119+
from langfuse.client import FernLangfuse
120120

121121
client = FernLangfuse(..., { timeout=20.0 }, )
122122

@@ -131,10 +131,9 @@ client.comments.create(...,{
131131

132132
You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
133133
and transports.
134-
135134
```python
136135
import httpx
137-
from langfuse.api.client import FernLangfuse
136+
from langfuse.client import FernLangfuse
138137

139138
client = FernLangfuse(
140139
...,

langfuse/api/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class FernLangfuse:
5151
5252
Examples
5353
--------
54-
from langfuse.api.client import FernLangfuse
54+
from langfuse.client import FernLangfuse
5555
5656
client = FernLangfuse(
5757
x_langfuse_sdk_name="YOUR_X_LANGFUSE_SDK_NAME",
@@ -140,7 +140,7 @@ class AsyncFernLangfuse:
140140
141141
Examples
142142
--------
143-
from langfuse.api.client import AsyncFernLangfuse
143+
from langfuse.client import AsyncFernLangfuse
144144
145145
client = AsyncFernLangfuse(
146146
x_langfuse_sdk_name="YOUR_X_LANGFUSE_SDK_NAME",

0 commit comments

Comments
 (0)