From c69a3e74b0523ccc9e9d4f5de8140a2b7152b4c3 Mon Sep 17 00:00:00 2001 From: tbxark Date: Thu, 12 Dec 2024 15:26:49 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=A7=BB=E9=99=A4=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/lib/core/src/agent/openai.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/lib/core/src/agent/openai.ts b/packages/lib/core/src/agent/openai.ts index 10a2bab9..4f840044 100644 --- a/packages/lib/core/src/agent/openai.ts +++ b/packages/lib/core/src/agent/openai.ts @@ -87,10 +87,6 @@ export class OpenAI extends OpenAIBase implements ChatAgent { return ctx.OPENAI_CHAT_MODEL; }; - private render = async (item: HistoryItem): Promise => { - return renderOpenAIMessage(item); - }; - readonly request = async (params: LLMChatParams, context: AgentUserConfig, onStream: ChatStreamTextHandler | null): Promise => { const { prompt, messages } = params; const url = `${context.OPENAI_API_BASE}/chat/completions`;