Skip to content

Add GenAI Chat Template Function Docs #24621

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

sayanshaw24
Copy link
Contributor

@sayanshaw24 sayanshaw24 commented May 2, 2025

Add function docs for chat template C API and C#/Python bindings.


Processes the specified template with the provided input using the tokenizer, and outputs the resulting string. Optionally, it can include a generation prompt in the output. out_string must be freed with OgaDestroyString

#### Parameters
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no params or returns for anything in the c.md file (not sure if this is by design or just not done yet), so omitted this here as well for now.

@sayanshaw24 sayanshaw24 requested a review from natke May 2, 2025 20:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant