Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
allenanie committed Oct 31, 2024
2 parents f3f76cd + 43df6bd commit 646675d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions opto/optimizers/optoprime.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def repr_node_constraint(node_dict):
temp_list.append(f"(code) {k}: {v[1]}")
return "\n".join(temp_list)

def probelm_instance(self, summary, mask=None):
def problem_instance(self, summary, mask=None):
mask = mask or []
return ProblemInstance(
instruction=self.objective if '#Instruction' not in mask else "",
Expand All @@ -369,7 +369,7 @@ def construct_prompt(self, summary, mask=None, *args, **kwargs):
"""Construct the system and user prompt."""
system_prompt = self.representation_prompt + self.output_format_prompt # generic representation + output rule
user_prompt = self.user_prompt_template.format(
problem_instance=str(self.probelm_instance(summary, mask=mask))
problem_instance=str(self.problem_instance(summary, mask=mask))
) # problem instance
if self.include_example:
user_prompt = (
Expand Down Expand Up @@ -429,7 +429,7 @@ def _step(self, verbose=False, mask=None, *args, **kwargs) -> Dict[ParameterNode

if self.log is not None:
self.log.append({"system_prompt": system_prompt, "user_prompt": user_prompt, "response": response})
self.summary_log.append({'problem_instance': self.probelm_instance(summary), 'summary': summary})
self.summary_log.append({'problem_instance': self.problem_instance(summary), 'summary': summary})

return update_dict

Expand Down
2 changes: 1 addition & 1 deletion opto/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.1"
__version__ = "0.1.2"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


install_requires = [
"pyautogen>=0.2.31",
"autogen-agentchat~=0.2",
"graphviz>=0.20.1",
"scikit-learn",
"xgboost",
Expand Down

0 comments on commit 646675d

Please sign in to comment.