Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": "<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.
"""

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {
"by_alias": True,
Expand Down
Loading