🌐 AI搜索 & 代理 主页
Skip to content

Tags: sqliteai/sqlite-ai

Tags

0.7.58

Toggle 0.7.58's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix/memory leaks, add functions to report context usage, add unittest (

…#20)

* fix(chat): avoid memory leaks and unnecessary re-initialization in llm_chat_check_context

Adds a check to return early if the chat struct is already initialized, preventing memory leaks and unnecessary re-initialization and ensuring correct chat context handling.

* fix(chat): remove the duplicate_content arg in llm_messages_append to avoid a crash on llm_chat_free()

Refactored llm_messages_append to always duplicate message content using sqlite_strdup, removing the duplicate_content parameter. This option was causing a double-free crash in llm_chat_free with non-duplicated content. Also, the ai->chat.response buffer is reset on new prompts in the same chat so we cannot rely on that buffer to store previous response messages.

* test: add C unit tests

Introduces a new C unit test runner at tests/c/unittest.c with basic tests for the SQLite AI extension. The Makefile is updated to build and run these tests, including logic to download a test model if needed and link against the appropriate SQLite libraries.

* ci: add GGUF model caching to workflow

Introduces a new 'download-model' job in the GitHub Actions workflow to cache and restore the GGUF model, reducing redundant downloads. Updates the Makefile to use GGUF model variables, simplifies test model handling, and ensures the test binary is built with the correct SQLite source.
Add SQLite amalgamation for testing.

* feat: add llm_context_used and llm_context_size functions to report context usage

Add two functions: llm_context_size, which returns the total context size, and llm_context_used, which returns the number of tokens used.

0.7.57

Toggle 0.7.57's commit message
feat(workflow): switch npmjs to OIDC auth

0.7.56

Toggle 0.7.56's commit message
feat(packages): add @sqliteai/sqlite-ai Node package

0.7.55

Toggle 0.7.55's commit message
fix(release): skip duplicate AAR build

0.7.5

Toggle 0.7.5's commit message
fix(macos): lower os version requirement for cmake modules

0.7.4

Toggle 0.7.4's commit message
Bump SQLITE_AI_VERSION to 0.7.4

0.7.3

Toggle 0.7.3's commit message
Minor improvements to the ai_logger function

0.7.2

Toggle 0.7.2's commit message
Bump SQLITE_AI_VERSION to 0.7.2

0.7.1

Toggle 0.7.1's commit message
Sanity check added for non-empty options

0.7.0

Toggle 0.7.0's commit message
Fixed several issues related to non FLOAT32 embedding generation