Skip to content

fix: update adding_new_models notebook to use current ChatTemplate API#1449

Open
octo-patch wants to merge 2 commits into
guidance-ai:mainfrom
octo-patch:fix/update-adding-new-models-notebook
Open

fix: update adding_new_models notebook to use current ChatTemplate API#1449
octo-patch wants to merge 2 commits into
guidance-ai:mainfrom
octo-patch:fix/update-adding-new-models-notebook

Conversation

@octo-patch

Copy link
Copy Markdown

Fixes deprecated API usage in adding_new_models.ipynb notebook. Replaces TransformersChat with ChatTemplate subclass and removes indent_roles() calls.

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.
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.

1 participant