Skip to content

Commit

Permalink
perf: 移除废弃代码
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Dec 12, 2024
1 parent 177af0b commit c69a3e7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/lib/core/src/agent/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ export class OpenAI extends OpenAIBase implements ChatAgent {
return ctx.OPENAI_CHAT_MODEL;
};

private render = async (item: HistoryItem): Promise<any> => {
return renderOpenAIMessage(item);
};

readonly request = async (params: LLMChatParams, context: AgentUserConfig, onStream: ChatStreamTextHandler | null): Promise<ChatAgentResponse> => {
const { prompt, messages } = params;
const url = `${context.OPENAI_API_BASE}/chat/completions`;
Expand Down

0 comments on commit c69a3e7

Please sign in to comment.