Skip to content

Commit cd8018e

Browse files
committed
use HttpUrl (not AnyHttpUrl) for passthrough_url, consistent with rest of codebase
1 parent bec18e9 commit cd8018e

File tree

1 file changed

+2
-2
lines changed
  • src/llama_stack/providers/remote/inference/passthrough

1 file changed

+2
-2
lines changed

src/llama_stack/providers/remote/inference/passthrough/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This source code is licensed under the terms described in the LICENSE file in
55
# the root directory of this source tree.
66

7-
from pydantic import AnyHttpUrl, BaseModel, ConfigDict, SecretStr
7+
from pydantic import BaseModel, ConfigDict, HttpUrl, SecretStr
88

99
from .config import PassthroughImplConfig
1010

@@ -18,7 +18,7 @@ class PassthroughProviderDataValidator(BaseModel):
1818
# Without it, Pydantic drops them before build_forwarded_headers() can read them.
1919
model_config = ConfigDict(extra="allow")
2020

21-
passthrough_url: AnyHttpUrl | None = None
21+
passthrough_url: HttpUrl | None = None
2222
passthrough_api_key: SecretStr | None = None
2323

2424

0 commit comments

Comments
 (0)