fix: update adding_new_models notebook to use current ChatTemplate API#1449
fix: update adding_new_models notebook to use current ChatTemplate API#1449octo-patch wants to merge 2 commits into
Conversation
Add an AzureOpenAI class that mirrors the OpenAI class interface, allowing users to use guidance.models.AzureOpenAI(model=..., azure_endpoint=..., azure_deployment=...) instead of the create_azure_openai_model factory function.
|
This notebook fix is identical to #1450 (also open, same author, confirmed byte-identical diff on #1450 has the identical notebook fix on a current base with none of that collateral diff, so recommending that one instead — this one is probably worth closing or rebasing rather than merging as-is. |
Fixes deprecated API usage in adding_new_models.ipynb notebook. Replaces TransformersChat with ChatTemplate subclass and removes indent_roles() calls.