Skip to content

Commit bfbfac7

Browse files
langfuse-botlangfuse-bot
andauthored
feat(api): update API spec from langfuse/langfuse cb16277 (#1459)
Co-authored-by: langfuse-bot <langfuse-bot@langfuse.com>
1 parent 969b832 commit bfbfac7

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

langfuse/api/resources/llm_connections/types/llm_connection.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ class LlmConnection(pydantic_v1.BaseModel):
4848
Keys of extra headers sent with requests (values excluded for security)
4949
"""
5050

51+
config: typing.Optional[typing.Dict[str, typing.Any]] = pydantic_v1.Field(
52+
default=None
53+
)
54+
"""
55+
Adapter-specific configuration. Required for Bedrock (`{"region":"us-east-1"}`), optional for VertexAI (`{"location":"us-central1"}`), not used by other adapters.
56+
"""
57+
5158
created_at: dt.datetime = pydantic_v1.Field(alias="createdAt")
5259
updated_at: dt.datetime = pydantic_v1.Field(alias="updatedAt")
5360

langfuse/api/resources/llm_connections/types/upsert_llm_connection_request.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ class UpsertLlmConnectionRequest(pydantic_v1.BaseModel):
5454
Extra headers to send with requests
5555
"""
5656

57+
config: typing.Optional[typing.Dict[str, typing.Any]] = pydantic_v1.Field(
58+
default=None
59+
)
60+
"""
61+
Adapter-specific configuration. Validation rules: - **Bedrock**: Required. Must be `{"region": "<aws-region>"}` (e.g., `{"region":"us-east-1"}`) - **VertexAI**: Optional. If provided, must be `{"location": "<gcp-location>"}` (e.g., `{"location":"us-central1"}`) - **Other adapters**: Not supported. Omit this field or set to null.
62+
"""
63+
5764
def json(self, **kwargs: typing.Any) -> str:
5865
kwargs_with_defaults: typing.Any = {
5966
"by_alias": True,

0 commit comments

Comments
 (0)