Skip to content

Commit

Permalink
Merge pull request #155 from thomasaarholt/main
Browse files Browse the repository at this point in the history
Fix incorrect type hint in experimental engine
  • Loading branch information
vinid authored Feb 28, 2025
2 parents 6ede5fb + 8e60c85 commit 203685e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textgrad/engine_experimental/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _generate_from_multiple_input(self, prompt, system_prompt=None, **kwargs) ->
def _generate_from_single_prompt(self, prompt, system_prompt=None, **kwargs) -> str:
pass

def generate(self, content, system_prompt: Union[str | List[Union[str, bytes]]] = None, **kwargs):
def generate(self, content, system_prompt: Union[str, List[Union[str, bytes]]] = None, **kwargs):
sys_prompt_arg = system_prompt if system_prompt else self.system_prompt

if isinstance(content, str):
Expand Down

0 comments on commit 203685e

Please sign in to comment.