diff --git a/cli/planoai/config_generator.py b/cli/planoai/config_generator.py index 5a3d4f63..6738e93b 100644 --- a/cli/planoai/config_generator.py +++ b/cli/planoai/config_generator.py @@ -28,6 +28,7 @@ SUPPORTED_PROVIDERS_WITHOUT_BASE_URL = [ "xai", "moonshotai", "zhipu", + "do", ] SUPPORTED_PROVIDERS = ( diff --git a/cli/uv.lock b/cli/uv.lock index 665ebdb8..e8c85648 100644 --- a/cli/uv.lock +++ b/cli/uv.lock @@ -337,7 +337,7 @@ wheels = [ [[package]] name = "planoai" -version = "0.4.18" +version = "0.4.19" source = { editable = "." } dependencies = [ { name = "click" }, diff --git a/config/envoy.template.yaml b/config/envoy.template.yaml index 5669511d..55c840c7 100644 --- a/config/envoy.template.yaml +++ b/config/envoy.template.yaml @@ -901,6 +901,33 @@ static_resources: validation_context: trusted_ca: filename: {{ upstream_tls_ca_path | default('/etc/ssl/certs/ca-certificates.crt') }} + - name: do + connect_timeout: {{ upstream_connect_timeout | default('5s') }} + type: LOGICAL_DNS + dns_lookup_family: V4_ONLY + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: do + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: inference.do-ai.run + port_value: 443 + hostname: "inference.do-ai.run" + transport_socket: + name: envoy.transport_sockets.tls + typed_config: + "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext + sni: inference.do-ai.run + common_tls_context: + tls_params: + tls_minimum_protocol_version: TLSv1_2 + tls_maximum_protocol_version: TLSv1_3 + validation_context: + trusted_ca: + filename: {{ upstream_tls_ca_path | default('/etc/ssl/certs/ca-certificates.crt') }} - name: xiaomi connect_timeout: {{ upstream_connect_timeout | default('5s') }} type: LOGICAL_DNS