Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Removed Unnecessary Constructor From Safe Handles #696

Merged

Conversation

martindevans
Copy link
Member

  • Removed unnecessary constructors from safe handles
  • Returning SafeLLamaGrammarHandle directly from llama_grammar_init and llama_grammar_copy instead of raw IntPtr

 - Returning SafeLLamaGrammarHandle directly from `llama_grammar_init` and `llama_grammar_copy`
LLama/Native/SafeLLamaGrammarHandle.cs Outdated Show resolved Hide resolved
@martindevans martindevans merged commit 18586cc into SciSharp:master Apr 26, 2024
3 checks passed
@martindevans martindevans deleted the safe_handle_constructor_refactor branch April 26, 2024 15:14
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