From fd5ec01a995385b1095a4b7c6fc1007c2e9b95c8 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Tue, 9 Dec 2025 13:50:32 +0800 Subject: [PATCH] fix ppq models matching incorrectly --- routstr/upstream/ppqai.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routstr/upstream/ppqai.py b/routstr/upstream/ppqai.py index f8a9c965..688c018a 100644 --- a/routstr/upstream/ppqai.py +++ b/routstr/upstream/ppqai.py @@ -131,7 +131,9 @@ class PPQAIUpstreamProvider(BaseUpstreamProvider): ( model for model in or_models - if model.id == ppqai_model.id + if (model.id == ppqai_model.id) + or (model.id.split("/")[-1] == ppqai_model.id) + or (model.id == ppqai_model.id.split("/")[-1]) ), None, )