Skip to content

Commit

Permalink
configurable prompt template
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Szefler committed Jun 11, 2024
1 parent 3b0012f commit 7eb03ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ class InvestigateRequest(BaseModel):
source_instance_id: str
include_tool_calls: bool = False
include_tool_call_results: bool = False
prompt_template: str = "builtin://generic_investigation.jinja2"
# TODO in the future
# response_handler: ...


def init_logging():
logging_level = os.environ.get("LOG_LEVEL", "INFO")
logging_format = "%(log_color)s%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s"
Expand Down Expand Up @@ -84,7 +86,7 @@ def investigate_issues(request: InvestigateRequest):
investigation = ai.investigate(
issue,
# TODO prompt should probably be configurable?
prompt=load_prompt("builtin://generic_investigation.jinja2"),
prompt=load_prompt(request.prompt),
console=console,
)
ret = {
Expand Down

0 comments on commit 7eb03ad

Please sign in to comment.