v1.1.1
This commit is contained in:
parent
5e449cdd94
commit
af43abea60
13 changed files with 39 additions and 23 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
__all__ = ["__version__", "run_programmatic"]
|
||||
__version__ = "1.1.0"
|
||||
__version__ = "1.1.1"
|
||||
|
||||
from vibe.core.programmatic import run_programmatic
|
||||
|
|
|
|||
|
|
@ -305,6 +305,7 @@ class VibeConfig(BaseSettings):
|
|||
instructions: str = ""
|
||||
workdir: Path | None = Field(default=None, exclude=True)
|
||||
system_prompt_id: str = "cli"
|
||||
include_commit_signature: bool = True
|
||||
include_model_info: bool = True
|
||||
include_project_context: bool = True
|
||||
include_prompt_detail: bool = True
|
||||
|
|
|
|||
|
|
@ -11,14 +11,3 @@ Answer the user's request using the relevant tool(s), if they are available. Che
|
|||
Always try your hardest to use the tools to answer the user's request. If you can't use the tools, explain why and ask the user for more information.
|
||||
|
||||
Act as an agentic assistant, if a user asks for a long task, break it down and do it step by step.
|
||||
|
||||
When you want to commit changes, you will always use the 'git commit' bash command. It will always
|
||||
be suffixed with a line telling it was generated by Mistral Vibe with the appropriate co-authoring information.
|
||||
The format you will always uses is the following heredoc.
|
||||
|
||||
```bash
|
||||
git commit -m "<Commit message here>
|
||||
|
||||
Generated by Mistral Vibe.
|
||||
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>"
|
||||
```
|
||||
|
|
|
|||
|
|
@ -361,9 +361,25 @@ def _get_windows_system_prompt() -> str:
|
|||
)
|
||||
|
||||
|
||||
def _add_commit_signature() -> str:
|
||||
return (
|
||||
"When you want to commit changes, you will always use the 'git commit' bash command.\n"
|
||||
"It will always be suffixed with a line telling it was generated by Mistral Vibe with the appropriate co-authoring information.\n"
|
||||
"The format you will always uses is the following heredoc.\n\n"
|
||||
"```bash\n"
|
||||
"git commit -m <Commit message here>\n\n"
|
||||
"Generated by Mistral Vibe.\n"
|
||||
"Co-Authored-By: Mistral Vibe <vibe@mistral.ai>\n"
|
||||
"```"
|
||||
)
|
||||
|
||||
|
||||
def get_universal_system_prompt(tool_manager: ToolManager, config: VibeConfig) -> str:
|
||||
sections = [config.system_prompt]
|
||||
|
||||
if config.include_commit_signature:
|
||||
sections.append(_add_commit_signature())
|
||||
|
||||
if config.include_model_info:
|
||||
sections.append(f"Your model name is: `{config.active_model}`")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue