Support downloading of URLs for attachments for code interpreter

This commit is contained in:
Ashwin Bharambe 2024-08-30 12:10:15 -07:00
parent afb18880b5
commit 297d51b183
6 changed files with 38 additions and 9 deletions

View file

@ -304,7 +304,7 @@ def main(yaml_config: str, port: int = 5000, disable_ipv6: bool = False):
and provider_spec.adapter is None
):
for endpoint in endpoints:
url = impl.__provider_config__.url
url = impl.__provider_config__.url.rstrip("/") + endpoint.route
getattr(app, endpoint.method)(endpoint.route)(
create_dynamic_passthrough(url)
)