microsoft / sammo

A library for prompt engineering and optimization (SAMMO = Structure-aware Multi-Objective Metaprompt Optimization)
MIT License
581 stars 29 forks source link

Add local override for Runner to GenerateText #41

Closed pbourke closed 3 months ago

t-schn commented 3 months ago

@pbourke: Can you move the runner override line to below where the child is called? Otherwise it will be propagated.

pbourke commented 3 months ago

@pbourke: Can you move the runner override line to below where the child is called? Otherwise it will be propagated.

Sure. I'll make the override apply to just the runner.generate_text call, so the child and history calls will use the passed-in runner.