Skip to content

Commit

Permalink
fix: prefix messages always true (run-llama#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanuelCampos authored Mar 2, 2024
1 parent 698cd9c commit 64683a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-ducks-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"llamaindex": patch
---

fix: prefix messages always true
2 changes: 0 additions & 2 deletions packages/core/src/agent/openai/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ export class OpenAIAgent extends AgentRunner {
toolRetriever,
systemPrompt,
}: OpenAIAgentParams) {
prefixMessages = prefixMessages || [];

llm = llm ?? new OpenAI({ model: "gpt-3.5-turbo-0613" });

if (systemPrompt) {
Expand Down

0 comments on commit 64683a5

Please sign in to comment.