diff --git a/app/_kong_plugins/ai-proxy-advanced/examples/dashscope-chat-route.yaml b/app/_kong_plugins/ai-proxy-advanced/examples/dashscope-chat-route.yaml new file mode 100644 index 0000000000..5f2db4b34e --- /dev/null +++ b/app/_kong_plugins/ai-proxy-advanced/examples/dashscope-chat-route.yaml @@ -0,0 +1,36 @@ + +title: 'Chat route with DashScope' +description: "Configure a chat route using Alibaba Cloud's DashScope Qwen Plus model." + +min_version: + gateway: '3.13' + +weight: 900 + +requirements: +- Alibaba Cloud account + +config: + targets: + - route_type: llm/v1/chat + auth: + header_name: Authorization + header_value: Bearer ${key} + model: + provider: dashscope + name: qwen-plus + options: + max_tokens: 512 + temperature: 1.0 + +variables: + key: + value: $DASHSCOPE_API_KEY + description: The API key to use to connect to DashScope. + +tools: + - deck + - admin-api + - konnect-api + - kic + - terraform diff --git a/app/_kong_plugins/ai-proxy/examples/dashscope-chat-route.yaml b/app/_kong_plugins/ai-proxy/examples/dashscope-chat-route.yaml new file mode 100644 index 0000000000..fb31ab593c --- /dev/null +++ b/app/_kong_plugins/ai-proxy/examples/dashscope-chat-route.yaml @@ -0,0 +1,35 @@ + +title: 'Chat route with DashScope' +description: "Configure a chat route using Alibaba Cloud's DashScope Qwen Plus model." + +min_version: + gateway: '3.13' + +weight: 900 + +requirements: +- Alibaba Cloud account + +config: + route_type: llm/v1/chat + auth: + header_name: Authorization + header_value: Bearer ${key} + model: + provider: dashscope + name: qwen-plus + options: + max_tokens: 512 + temperature: 1.0 + +variables: + key: + value: $DASHSCOPE_API_KEY + description: The API key to use to connect to DashScope. + +tools: + - deck + - admin-api + - konnect-api + - kic + - terraform diff --git a/app/_landing_pages/ai-gateway/ai-providers.yaml b/app/_landing_pages/ai-gateway/ai-providers.yaml index 36e6f79587..51090ed97f 100644 --- a/app/_landing_pages/ai-gateway/ai-providers.yaml +++ b/app/_landing_pages/ai-gateway/ai-providers.yaml @@ -97,6 +97,15 @@ rows: icon: /assets/icons/mistral.svg cta: url: ./#mistral + - column_count: 3 + columns: + - blocks: + - type: icon_card + config: + title: Alibaba Cloud DashScope + icon: /assets/icons/dashscope.svg + cta: + url: ./#alibaba-cloud-dashscope - header: @@ -463,3 +472,42 @@ rows: # quantity: 3 # allow_empty: true + - header: + type: h3 + text: "Alibaba Cloud DashScope" + columns: + - blocks: + - type: card + config: + title: AI Proxy with DashScope + description: + Configure the AI Proxy plugin to proxy requests to a DashScope model + cta: + url: /plugins/ai-proxy/examples/dashscope-chat-route/ + align: end + text: Configuration example + - blocks: + - type: card + config: + title: AI Proxy Advanced with DashScope + description: + Configure the AI Proxy Advanced plugin to proxy requests to a DashScope model + cta: + url: /plugins/ai-proxy-advanced/examples/dashscope-chat-route/ + align: end + text: Configuration example + # - header: + # type: h4 + # text: How-to Guides + # columns: + # - blocks: + # - type: how_to_list + # config: + # plugins: + # - ai-proxy + # - ai-proxy-advanced + # tags: + # - dashscope + # quantity: 3 + # allow_empty: true + diff --git a/app/assets/icons/dashscope.svg b/app/assets/icons/dashscope.svg new file mode 100644 index 0000000000..503a55b26b --- /dev/null +++ b/app/assets/icons/dashscope.svg @@ -0,0 +1,4 @@ + + + +