feat: AI 代理 Wasm 插件接入 Together AI#1617
Merged
CH3CHO merged 3 commits intoalibaba:mainfrom Dec 23, 2024
Merged
Conversation
CH3CHO
requested changes
Dec 23, 2024
| return providerTypeTogetherAI | ||
| } | ||
|
|
||
| func (m *togetherAIProvider) OnRequestHeaders(ctx wrapper.HttpContext, apiName ApiName, log wrapper.Log) (types.Action, error) { |
Collaborator
There was a problem hiding this comment.
这个函数的签名与 RequestHeadersHandler 接口中定义的不一致。
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1617 +/- ##
==========================================
+ Coverage 35.91% 43.50% +7.59%
==========================================
Files 69 76 +7
Lines 11576 12325 +749
==========================================
+ Hits 4157 5362 +1205
+ Misses 7104 6627 -477
- Partials 315 336 +21 |
VinceCui
pushed a commit
to VinceCui/higress
that referenced
this pull request
May 21, 2025
ink-hz
pushed a commit
to ink-hz/higress-ai-capability-auth
that referenced
this pull request
Nov 5, 2025
ISADBA
pushed a commit
to ISADBA/higress
that referenced
this pull request
Jan 13, 2026
ISADBA
pushed a commit
to ISADBA/higress
that referenced
this pull request
Jan 13, 2026
johnlanni
pushed a commit
that referenced
this pull request
Jan 31, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Ⅰ. Describe what this PR did
Support Together AI Chat Completion Model. API Doc: https://docs.together.ai/docs/chat-overview
Ⅱ. Does this pull request fix one issue?
fixes #964
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
docker-compose.yaml
envoy.yaml
测试请求:
响应:
{ "id": "8f60ee79ed51f8f2", "object": "chat.completion", "created": 1734879103, "model": "Qwen/Qwen2.5-72B-Instruct-Turbo", "prompt": [], "choices": [ { "finish_reason": "eos", "seed": 4673125895036746000, "logprobs": null, "index": 0, "message": { "role": "assistant", "content": "I am Qwen, a large language model created by Alibaba Cloud. I am designed to assist users in generating various types of text, such as articles, stories, poems, and more, as well as to answer questions and engage in conversations. How can I assist you today?", "tool_calls": [] } } ], "usage": { "prompt_tokens": 33, "completion_tokens": 57, "total_tokens": 90 } }Ⅴ. Special notes for reviews