Skip to content

Commit

Permalink
Fix for teacher_runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
nik committed Mar 26, 2024
1 parent e631d0f commit c240b48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions adala/agents/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ def get_teacher_runtime(self, runtime: Optional[str] = None) -> Runtime:
raise ValueError(f"Teacher Runtime is requested, but it was not set."
f"Please provide a teacher runtime in the agent's constructor explicitly:"
f"agent = Agent(..., teacher_runtimes={{'default': OpenAIChatRuntime(model='gpt-4')}})")
return runtime

def run(
self, input: InternalDataFrame = None, runtime: Optional[str] = None
Expand Down
1 change: 0 additions & 1 deletion adala/skills/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ def improve(
Summarize your analysis about incorrect predictions and suggest changes to the prompt.""",
}
]

reasoning = runtime.execute(messages)

messages += [
Expand Down

0 comments on commit c240b48

Please sign in to comment.