Replies: 1 comment
-
If you have a completion based API, then you should be able to just change the model creation ( with system():
lm += "Create a role-playing character in response to the user input"
with user():
lm += "A character attuned to the forest"
with assistant():
lm += gen_json(schema=character_schema_obj, name="next_character") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm following along the tutorial notebooks to get up to speed with the new Guidance - but having trouble adapting this one to work with OpenAI models. Is there a notebook that covers achieving this with API based models?
The specific issue I'm hitting is the need for the context managers, not clear which should be used here and how.
Beta Was this translation helpful? Give feedback.
All reactions