From 6fdda3a570f53859452cee10a7987030274a235a Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 30 Apr 2026 21:01:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20test=5Fopenai=5Fcopilot=5F?= =?UTF-8?q?patch.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_openai_copilot_patch.py | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 test_openai_copilot_patch.py diff --git a/test_openai_copilot_patch.py b/test_openai_copilot_patch.py deleted file mode 100644 index 4fa81d86..00000000 --- a/test_openai_copilot_patch.py +++ /dev/null @@ -1,9 +0,0 @@ -from app.agent.llm.helper import _patch_openai_responses_instructions_support -from langchain_openai import ChatOpenAI -from langchain_core.messages import SystemMessage, HumanMessage -import json - -_patch_openai_responses_instructions_support() -model = ChatOpenAI(model="gpt-4o", openai_api_key="sk-123", base_url="https://api.githubcopilot.com", stream_usage=True) -payload = model._get_request_payload([SystemMessage(content="Hello system"), HumanMessage(content="Hello user")]) -print(json.dumps(payload, indent=2))