Skip to content

Commit

Permalink
SimplifidedLLMPB change variable
Browse files Browse the repository at this point in the history
  • Loading branch information
CTY-git committed Aug 21, 2024
1 parent 0c3abd3 commit e668585
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions patchwork/steps/SimplifiedLLMOncePB/SimplifiedLLMOncePB.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class SimplifiedLLMOncePB(Step, input_class=SimplifiedLLMOncePBInputs):
def __init__(self, inputs):
super().__init__(inputs)

self.user = inputs["prompt_user"]
self.system = inputs.get("prompt_system")
self.user = inputs["user_prompt"]
self.system = inputs.get("system_prompt")
self.prompt_value = inputs["prompt_value"]
self.json_schema = inputs["json_schema"]
self.inputs = inputs
Expand Down
4 changes: 2 additions & 2 deletions patchwork/steps/SimplifiedLLMOncePB/typed.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
class __SimplifiedLLMOncePBInputsRequired(TypedDict):
json_schema: Annotated[Dict[str, Any], StepTypeConfig(is_config=True)]
# PreparePromptInputs
prompt_user: Annotated[str, StepTypeConfig(is_config=True)]
user_prompt: Annotated[str, StepTypeConfig(is_config=True)]
prompt_value: Dict[str, Any]


class SimplifiedLLMOncePBInputs(__SimplifiedLLMOncePBInputsRequired, total=False):
prompt_system: Annotated[str, StepTypeConfig(is_config=True)]
system_prompt: Annotated[str, StepTypeConfig(is_config=True)]
# CallLLMInputs
model: Annotated[str, StepTypeConfig(is_config=True)]
openai_api_key: Annotated[
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "patchwork-cli"
version = "0.0.49.dev7"
version = "0.0.49.dev8"
description = ""
authors = ["patched.codes"]
license = "AGPL"
Expand Down

0 comments on commit e668585

Please sign in to comment.