mirror of
https://github.com/alibaba/higress.git
synced 2026-03-02 15:40:54 +08:00
update default enable path suffix in model mapper&router plugin (#1962)
This commit is contained in:
@@ -40,7 +40,9 @@ struct ModelRouterConfigRule {
|
||||
std::string model_key_ = "model";
|
||||
std::string add_provider_header_;
|
||||
std::string model_to_header_;
|
||||
std::vector<std::string> enable_on_path_suffix_ = {"/v1/chat/completions"};
|
||||
std::vector<std::string> enable_on_path_suffix_ = {
|
||||
"/completions", "/embeddings", "/images/generations",
|
||||
"/audio/speech", "/fine_tuning/jobs", "/moderations"};
|
||||
};
|
||||
|
||||
// PluginRootContext is the root context for all streams processed by the
|
||||
|
||||
Reference in New Issue
Block a user