Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Let the user add their own system prompts #643

Merged
merged 8 commits into from
Jan 20, 2025

Conversation

aponcedeleonch
Copy link
Contributor

@aponcedeleonch aponcedeleonch commented Jan 17, 2025

Related: #454

This PR introduces being able to add system-prompts to workspaces. The workspace system prompts are added in the step that we are using to add CodeGate system prompt. The order of the prompts will be the following assuming all of them are present:

  • CodeGate system prompt
  • Workspace system prompt
  • Request system prompt

The corresponding CLI command is also created and the documentation in the CLI is updated

@aponcedeleonch aponcedeleonch requested a review from JAORMX January 17, 2025 15:29
@aponcedeleonch aponcedeleonch marked this pull request as draft January 17, 2025 15:29
@aponcedeleonch aponcedeleonch force-pushed the workspace-system-prompt branch from 5145645 to b6f255c Compare January 20, 2025 10:16
@aponcedeleonch aponcedeleonch marked this pull request as ready for review January 20, 2025 10:18
src/codegate/api/v1.py Outdated Show resolved Hide resolved
src/codegate/db/connection.py Outdated Show resolved Hide resolved
src/codegate/db/connection.py Outdated Show resolved Hide resolved
src/codegate/db/connection.py Outdated Show resolved Hide resolved
src/codegate/pipeline/cli/commands.py Outdated Show resolved Hide resolved
src/codegate/pipeline/cli/commands.py Outdated Show resolved Hide resolved
src/codegate/workspaces/crud.py Show resolved Hide resolved
src/codegate/pipeline/cli/commands.py Outdated Show resolved Hide resolved
src/codegate/pipeline/cli/commands.py Outdated Show resolved Hide resolved
Related: #454

This PR is not ready yet. For the moment it adds the system prompts
to DB and associates it to a workspace.

It's missing to use the system prompt and actually send it to the
LLM
@aponcedeleonch aponcedeleonch force-pushed the workspace-system-prompt branch from d82ee68 to d05df39 Compare January 20, 2025 12:46
@aponcedeleonch aponcedeleonch requested a review from JAORMX January 20, 2025 13:34
Copy link
Contributor

@JAORMX JAORMX left a comment

Choose a reason for hiding this comment

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

shipit 🚢

@aponcedeleonch aponcedeleonch merged commit c35d3b1 into main Jan 20, 2025
4 checks passed
@aponcedeleonch aponcedeleonch deleted the workspace-system-prompt branch January 20, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants