Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

remove duplicated system prompt#8482

Merged
Light2Dark merged 1 commit intomainfrom
sham/fix-duplicate-prompt-error
Feb 27, 2026
Merged

remove duplicated system prompt#8482
Light2Dark merged 1 commit intomainfrom
sham/fix-duplicate-prompt-error

Conversation

Copy link
Collaborator

Light2Dark commented Feb 26, 2026 *
edited
Loading

Summary

When creating an agent, we are already passing in system prompt, we do not need to pass it in again.
This is only for certain endpoints/path flows.

Description of Changes

Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • Tests have been added for the changes made.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • Pull request title is a good summary of the changes - it will be used in the release notes.

Copy link

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Building Preview, Comment Feb 26, 2026 8:02pm

vercel bot deployed to Preview February 26, 2026 20:02 View deployment
Light2Dark commented Feb 26, 2026
Comment on lines 195 to 197
agent = self.create_agent(
max_tokens=max_tokens, tools=tools, system_prompt=system_prompt
)
Copy link
Collaborator Author

Light2Dark Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passed in system prompt here

Light2Dark added the bug Something isn't working label Feb 26, 2026
mscolnick approved these changes Feb 26, 2026
Light2Dark merged commit a836bfd into main Feb 27, 2026
40 of 47 checks passed
Light2Dark deleted the sham/fix-duplicate-prompt-error branch February 27, 2026 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

mscolnick mscolnick approved these changes

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants