From 927e8305b2fbb6f222e99b511511f30f5ce71ca3 Mon Sep 17 00:00:00 2001 From: langfuse-bot Date: Mon, 1 Dec 2025 16:36:33 +0000 Subject: [PATCH] feat(api): update API spec from langfuse/langfuse cb16277 --- .../api/resources/llm_connections/types/llm_connection.py | 7 +++++++ .../llm_connections/types/upsert_llm_connection_request.py | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/langfuse/api/resources/llm_connections/types/llm_connection.py b/langfuse/api/resources/llm_connections/types/llm_connection.py index 0b17b97a7..6ded1459a 100644 --- a/langfuse/api/resources/llm_connections/types/llm_connection.py +++ b/langfuse/api/resources/llm_connections/types/llm_connection.py @@ -48,6 +48,13 @@ class LlmConnection(pydantic_v1.BaseModel): Keys of extra headers sent with requests (values excluded for security) """ + config: typing.Optional[typing.Dict[str, typing.Any]] = pydantic_v1.Field( + default=None + ) + """ + Adapter-specific configuration. Required for Bedrock (`{"region":"us-east-1"}`), optional for VertexAI (`{"location":"us-central1"}`), not used by other adapters. + """ + created_at: dt.datetime = pydantic_v1.Field(alias="createdAt") updated_at: dt.datetime = pydantic_v1.Field(alias="updatedAt") diff --git a/langfuse/api/resources/llm_connections/types/upsert_llm_connection_request.py b/langfuse/api/resources/llm_connections/types/upsert_llm_connection_request.py index d0a5a368d..7490f25b7 100644 --- a/langfuse/api/resources/llm_connections/types/upsert_llm_connection_request.py +++ b/langfuse/api/resources/llm_connections/types/upsert_llm_connection_request.py @@ -54,6 +54,13 @@ class UpsertLlmConnectionRequest(pydantic_v1.BaseModel): Extra headers to send with requests """ + config: typing.Optional[typing.Dict[str, typing.Any]] = pydantic_v1.Field( + default=None + ) + """ + Adapter-specific configuration. Validation rules: - **Bedrock**: Required. Must be `{"region": ""}` (e.g., `{"region":"us-east-1"}`) - **VertexAI**: Optional. If provided, must be `{"location": ""}` (e.g., `{"location":"us-central1"}`) - **Other adapters**: Not supported. Omit this field or set to null. + """ + def json(self, **kwargs: typing.Any) -> str: kwargs_with_defaults: typing.Any = { "by_alias": True,