Skip to content

BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.

fix(embeddings): logging error

Christianc27b16ccd4ec
diff --git a/README.md b/README.md
index 26d8e78..bb29c33 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
<p align="center">
<a href="https://discord.gg/VTngQTaeDf"><img src="https://img.shields.io/badge/Discord-Join%20Lumen%20Brain-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Discord"/></a>
- <img src="https://img.shields.io/badge/version-2.6.1--dev-blue?style=for-the-badge" alt="Version"/>
+ img src="https://img.shields.io/badge/version-2.6.3--dev-blue?style=for-the-badge" alt="Version"/>
<img src="https://img.shields.io/badge/python-3.11+-green?style=for-the-badge&logo=python&logoColor=white" alt="Python"/>
<img src="https://img.shields.io/badge/license-AGPLv3%20%2B%20Commons%20Clause-purple?style=for-the-badge" alt="License"/>
</p>
diff --git a/pyproject.toml b/pyproject.toml
index 14683fc..5c7240c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "brainapi2"
-version = "2.6.2-dev"
+version = "2.6.3-dev"
description = "Version 2.x.x of the BrainAPI memory layer."
authors = [
{name = "Christian",email = "[email protected]"}
diff --git a/src/lib/embeddings/client.py b/src/lib/embeddings/client.py
index 05e9ea6..ecd538d 100644
--- a/src/lib/embeddings/client.py
+++ b/src/lib/embeddings/client.py
@@ -120,7 +120,7 @@ class EmbeddingsClient(EmbeddingsClient):
except RequestException as e:
error_msg = f"Request error during embedding: {e}"
print(
- f"Embedding encoding failed: {error_msg} -- input was: {type(text)} - {len(text) if isinstance(text, str) else "not a string"}"
+ f"Embedding encoding failed: {error_msg} -- input was: {type(text)} - {len(text) if isinstance(text, str) else 'not a string'}"
)
raise EmbeddingError(error_msg) from e
except Exception as e: