Skip to content

Commit 7db5b75

Browse files
authored
feat(openai): add Response API support (#1141)
1 parent 4b22e8c commit 7db5b75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1824
-684
lines changed

langfuse/api/README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ client = FernLangfuse(
2929
)
3030
client.comments.create(
3131
request=CreateCommentRequest(
32-
project_id="string",
33-
object_type="string",
34-
object_id="string",
35-
content="string",
36-
author_user_id="string",
32+
project_id="projectId",
33+
object_type="objectType",
34+
object_id="objectId",
35+
content="content",
3736
),
3837
)
3938
```
@@ -61,11 +60,10 @@ client = AsyncFernLangfuse(
6160
async def main() -> None:
6261
await client.comments.create(
6362
request=CreateCommentRequest(
64-
project_id="string",
65-
object_type="string",
66-
object_id="string",
67-
content="string",
68-
author_user_id="string",
63+
project_id="projectId",
64+
object_type="objectType",
65+
object_id="objectId",
66+
content="content",
6967
),
7068
)
7169

langfuse/api/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
DatasetRunItem,
4343
DatasetRunWithItems,
4444
DatasetStatus,
45+
DeleteDatasetItemResponse,
46+
DeleteDatasetRunResponse,
47+
DeleteTraceResponse,
4548
Error,
4649
GetCommentsResponse,
4750
GetMediaResponse,
@@ -86,8 +89,9 @@
8689
Observations,
8790
ObservationsView,
8891
ObservationsViews,
92+
OpenAiCompletionUsageSchema,
93+
OpenAiResponseUsageSchema,
8994
OpenAiUsage,
90-
OpenAiUsageSchema,
9195
OptionalObservationBody,
9296
PaginatedDatasetItems,
9397
PaginatedDatasetRuns,
@@ -198,6 +202,9 @@
198202
"DatasetRunItem",
199203
"DatasetRunWithItems",
200204
"DatasetStatus",
205+
"DeleteDatasetItemResponse",
206+
"DeleteDatasetRunResponse",
207+
"DeleteTraceResponse",
201208
"Error",
202209
"GetCommentsResponse",
203210
"GetMediaResponse",
@@ -242,8 +249,9 @@
242249
"Observations",
243250
"ObservationsView",
244251
"ObservationsViews",
252+
"OpenAiCompletionUsageSchema",
253+
"OpenAiResponseUsageSchema",
245254
"OpenAiUsage",
246-
"OpenAiUsageSchema",
247255
"OptionalObservationBody",
248256
"PaginatedDatasetItems",
249257
"PaginatedDatasetRuns",

0 commit comments

Comments
 (0)