mirror of
https://github.com/alibaba/higress.git
synced 2026-03-08 02:30:56 +08:00
add model-mapper plugin & optimize model-router plugin (#1538)
This commit is contained in:
@@ -37,9 +37,10 @@ namespace model_router {
|
||||
#endif
|
||||
|
||||
struct ModelRouterConfigRule {
|
||||
bool enable_ = false;
|
||||
std::string model_key_ = "model";
|
||||
std::string add_header_key_ = "x-higress-llm-provider";
|
||||
std::string add_provider_header_;
|
||||
std::string model_to_header_;
|
||||
std::vector<std::string> enable_on_path_suffix_ = {"/v1/chat/completions"};
|
||||
};
|
||||
|
||||
// PluginRootContext is the root context for all streams processed by the
|
||||
|
||||
Reference in New Issue
Block a user