-
Notifications
You must be signed in to change notification settings - Fork 62
Feat(ai-gateway): Alibaba DashScope provider #3574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7680c2b
Download Plugin Schemas and Metadata for 3.13
fabianrbz 6fe5cf5
Download Plugin Schemas and Metadata for 3.13 (#3544)
kong-apiops 42bedfb
Add 3.13 gw version
tomek-labuk 8303169
Update streaming document
tomek-labuk 3fb101d
Revert "Update streaming document"
tomek-labuk c7a158c
dashscope provider
lmilan ce4c609
update descriptions
lmilan b8d4a8a
Merge branch 'release/gateway-3.13' into feat/dashscope-provider
lmilan 14eae68
min version
lmilan 41e3b27
Update ai-providers.yaml
lmilan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
app/_kong_plugins/ai-proxy-advanced/examples/dashscope-chat-route.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
35 changes: 35 additions & 0 deletions
35
app/_kong_plugins/ai-proxy/examples/dashscope-chat-route.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a
column_count: 3here, otherwise rows where there's only one card look like this: