File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 0.1.6] - 2025-12-12
9+
10+ ### Fixed
11+
12+ - Fixed API key validation to raise ` AuthenticationError ` instead of ` ValueError ` for invalid format, ensuring consistent error handling
13+
814## [ 0.1.5] - 2025-12-12
915
1016### Fixed
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " brainus-ai"
7- version = " 0.1.5 "
7+ version = " 0.1.6 "
88description = " Official Python SDK for Brainus AI - RAG-powered educational content API"
99readme = " README.md"
1010license = {text = " MIT" }
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def __init__(
4545 max_retries: Maximum number of retry attempts for failed requests
4646 """
4747 if not api_key or not api_key .startswith ("brainus_" ):
48- raise ValueError ("Invalid API key format. Expected format: brainus_..." )
48+ raise AuthenticationError ("Invalid API key format. Expected format: brainus_..." )
4949
5050 self .api_key = api_key
5151 self .base_url = base_url .rstrip ("/" )
You can’t perform that action at this time.
0 commit comments