From 4bae7e7072d647252d96c63e55c84bc3547c30c6 Mon Sep 17 00:00:00 2001 From: yulei Date: Wed, 16 Oct 2024 23:18:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20ChatGPT=20=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将原有的针对 openai.com 和 chatgpt.com 的直接代理规则替换为使用新增的 chatgpt 规则集。这样可以更灵活地管理与 ChatGPT 相关的代理规则,并简化 rules 部分的维护。 --- openclash_Configuration_file(完整git版)V2.1.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/openclash_Configuration_file(完整git版)V2.1.yaml b/openclash_Configuration_file(完整git版)V2.1.yaml index 82c3324..1374bb0 100644 --- a/openclash_Configuration_file(完整git版)V2.1.yaml +++ b/openclash_Configuration_file(完整git版)V2.1.yaml @@ -173,11 +173,18 @@ rule-providers: url: "http://git.yulei.icu/yulei/openclash-rule/raw/dev/user-defined-rule/custom_direct.yaml" path: ./profiles/rules/custom_direct.yaml interval: 21600 + + chatgpt: + type: http + behavior: domain + url: "http://git.yulei.icu/yulei/openclash-rule/raw/dev/user-defined-rule/chatgpt.yaml" + path: ./profiles/rules/chatgpt.yaml + interval: 21600 + rules: - - DOMAIN-SUFFIX,openai.com,openai-PROXY - - DOMAIN-SUFFIX,chatgpt.com,openai-PROXY - + - RULE-SET,chatgpt,openai-PROXY + - RULE-SET,custom_proxy,PROXY - RULE-SET,custom_direct,DIRECT - RULE-SET,applications,DIRECT