From 9ebe968921156b31b0fb2df0709a5691cbf36c2d Mon Sep 17 00:00:00 2001 From: DefNed <8519834+Fengxq2014@users.noreply.github.com> Date: Mon, 31 Mar 2025 17:06:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Denvoy.yaml=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=AD=E5=87=A0=E5=A4=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#1983)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/wasm-go/extensions/ai-proxy/envoy.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/wasm-go/extensions/ai-proxy/envoy.yaml b/plugins/wasm-go/extensions/ai-proxy/envoy.yaml index 6f703668b..4a6d03a89 100644 --- a/plugins/wasm-go/extensions/ai-proxy/envoy.yaml +++ b/plugins/wasm-go/extensions/ai-proxy/envoy.yaml @@ -59,6 +59,7 @@ static_resources: "activeProviderId": "moonshot", "providers": [ { + "id": "moonshot", "type": "moonshot", "domain": "api.moonshot.cn", "apiTokens": [ @@ -71,11 +72,13 @@ static_resources: "gpt-35-turbo": "moonshot-v1-32k", "gpt-4-turbo": "moonshot-v1-128k", "*": "moonshot-v1-8k" - }, + } } ] } - name: envoy.filters.http.router + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router clusters: - name: httpbin connect_timeout: 30s