nvms / wingman

Your pair programming wingman. Supports OpenAI, Anthropic, or any LLM on your local inference server.
https://marketplace.visualstudio.com/items?itemName=nvms.ai-wingman
ISC License
61 stars 10 forks source link

Custom Templates can not use call backs #10

Closed GarrettEHill closed 1 year ago

GarrettEHill commented 1 year ago

callbackType: CallbackType.Replace, is not a valid option for custom templates as CallbackType.Replace is not defined within their context.

nvms commented 1 year ago

you need to reference the actual value of that enum: replace

other values:

https://github.com/nvms/wingman/blob/main/src/templates/render.ts#L82-L88