Skip to content

Conversation

handshape
Copy link

Hi there -- Cohere's Command models use break in their jinja templates. Adding the jinja2.ext.loopcontrols extesion to the jinja environment is sufficient to enable support.

@handshape
Copy link
Author

Now that devstral has dropped, and has even wackier stuff in their jinja templates, I wonder if there's a general form of this issue. Would it make sense to expose the jinja context, and let the consumer of the library decide what features and context objects they want to enable in jinja?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants