Commit 74331dbb authored by Your Name's avatar Your Name

Bump version to 0.99.43

parent 42cdb535
...@@ -54,7 +54,7 @@ from .auth.qwen import QwenOAuth2 ...@@ -54,7 +54,7 @@ from .auth.qwen import QwenOAuth2
from .handlers import RequestHandler, RotationHandler, AutoselectHandler from .handlers import RequestHandler, RotationHandler, AutoselectHandler
from .utils import count_messages_tokens, split_messages_into_chunks, get_max_request_tokens_for_model from .utils import count_messages_tokens, split_messages_into_chunks, get_max_request_tokens_for_model
__version__ = "0.99.42" __version__ = "0.99.43"
__all__ = [ __all__ = [
# Config # Config
"config", "config",
......
...@@ -837,6 +837,18 @@ class ClaudeProviderHandler(BaseProviderHandler): ...@@ -837,6 +837,18 @@ class ClaudeProviderHandler(BaseProviderHandler):
system_message, anthropic_messages = self._convert_messages_to_anthropic(validated_messages) system_message, anthropic_messages = self._convert_messages_to_anthropic(validated_messages)
# Sanitize system message to avoid Claude's unofficial client detection
# Replace "You are Kilo," or "You are Kiro," with "You are" to prevent
# contradiction with "You are Claude Code" that triggers detection
if system_message:
import re
system_message = re.sub(
r'\bYou are (Kilo|Kiro),',
'You are',
system_message,
flags=re.IGNORECASE
)
payload = { payload = {
'model': model, 'model': model,
'messages': anthropic_messages, 'messages': anthropic_messages,
......
...@@ -8058,7 +8058,9 @@ async def dashboard_add_payment_method_paypal_oauth(request: Request): ...@@ -8058,7 +8058,9 @@ async def dashboard_add_payment_method_paypal_oauth(request: Request):
paypal_auth_url = f"{auth_base_url}?{urlencode(params)}" paypal_auth_url = f"{auth_base_url}?{urlencode(params)}"
logger.info(f"Initiating PayPal OAuth for user {user_id}, sandbox={is_sandbox}") logger.info(f"Initiating PayPal OAuth for user {user_id}, sandbox={is_sandbox}")
logger.debug(f"PayPal OAuth redirect_uri: {redirect_uri}") logger.info(f"PayPal OAuth client_id: {client_id}")
logger.info(f"PayPal OAuth redirect_uri: {redirect_uri}")
logger.info(f"PayPal OAuth full URL: {paypal_auth_url}")
return RedirectResponse(url=paypal_auth_url, status_code=302) return RedirectResponse(url=paypal_auth_url, status_code=302)
......
...@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" ...@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "aisbf" name = "aisbf"
version = "0.99.42" version = "0.99.43"
description = "AISBF - AI Service Broker Framework || AI Should Be Free - A modular proxy server for managing multiple AI provider integrations" description = "AISBF - AI Service Broker Framework || AI Should Be Free - A modular proxy server for managing multiple AI provider integrations"
readme = "README.md" readme = "README.md"
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"
......
...@@ -49,7 +49,7 @@ class InstallCommand(_install): ...@@ -49,7 +49,7 @@ class InstallCommand(_install):
setup( setup(
name="aisbf", name="aisbf",
version="0.99.42", version="0.99.43",
author="AISBF Contributors", author="AISBF Contributors",
author_email="stefy@nexlab.net", author_email="stefy@nexlab.net",
description="AISBF - AI Service Broker Framework || AI Should Be Free - A modular proxy server for managing multiple AI provider integrations", description="AISBF - AI Service Broker Framework || AI Should Be Free - A modular proxy server for managing multiple AI provider integrations",
......
...@@ -66,6 +66,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. ...@@ -66,6 +66,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<p style="margin: 0; color: #2d3436;"> <p style="margin: 0; color: #2d3436;">
Claude.ai policies state that unofficial clients are not allowed. By using AISBF as a client, you acknowledge that: Claude.ai policies state that unofficial clients are not allowed. By using AISBF as a client, you acknowledge that:
<br><br>• While we do our best to mimic the claude-code CLI, using an unofficial client can lead to account suspension or cancellation <br><br>• While we do our best to mimic the claude-code CLI, using an unofficial client can lead to account suspension or cancellation
<br>• Claude.ai detects prompt patterns to identify unofficial client usage, so it may not work with complex agents and prompts
<br>• You use this software at your own risk and responsibility <br>• You use this software at your own risk and responsibility
<br>• We are not affiliated with Anthropic and cannot guarantee compatibility or continued functionality <br>• We are not affiliated with Anthropic and cannot guarantee compatibility or continued functionality
</p> </p>
...@@ -516,6 +517,7 @@ function renderProviderDetails(key) { ...@@ -516,6 +517,7 @@ function renderProviderDetails(key) {
<p style="margin: 0; color: #2d3436;"> <p style="margin: 0; color: #2d3436;">
Claude.ai policies state that unofficial clients are not allowed. By using AISBF as a client, you acknowledge that: Claude.ai policies state that unofficial clients are not allowed. By using AISBF as a client, you acknowledge that:
<br><br>• While we do our best to mimic the claude-code CLI, using an unofficial client can lead to account suspension or cancellation <br><br>• While we do our best to mimic the claude-code CLI, using an unofficial client can lead to account suspension or cancellation
<br>• Claude.ai detects prompt patterns to identify unofficial client usage, so it may not work with complex agents and prompts
<br>• You use this software at your own risk and responsibility <br>• You use this software at your own risk and responsibility
<br>• We are not affiliated with Anthropic and cannot guarantee compatibility or continued functionality <br>• We are not affiliated with Anthropic and cannot guarantee compatibility or continued functionality
</p> </p>
......
...@@ -66,6 +66,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. ...@@ -66,6 +66,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<p style="margin: 0; color: #2d3436;"> <p style="margin: 0; color: #2d3436;">
Claude.ai policies state that unofficial clients are not allowed. By using AISBF as a client, you acknowledge that: Claude.ai policies state that unofficial clients are not allowed. By using AISBF as a client, you acknowledge that:
<br><br>• While we do our best to mimic the claude-code CLI, using an unofficial client can lead to account suspension or cancellation <br><br>• While we do our best to mimic the claude-code CLI, using an unofficial client can lead to account suspension or cancellation
<br>• Claude.ai detects prompt patterns to identify unofficial client usage, so it may not work with complex agents and prompts
<br>• You use this software at your own risk and responsibility <br>• You use this software at your own risk and responsibility
<br>• We are not affiliated with Anthropic and cannot guarantee compatibility or continued functionality <br>• We are not affiliated with Anthropic and cannot guarantee compatibility or continued functionality
</p> </p>
...@@ -489,6 +490,7 @@ function renderProviderDetails(key) { ...@@ -489,6 +490,7 @@ function renderProviderDetails(key) {
<p style="margin: 0; color: #2d3436;"> <p style="margin: 0; color: #2d3436;">
Claude.ai policies state that unofficial clients are not allowed. By using AISBF as a client, you acknowledge that: Claude.ai policies state that unofficial clients are not allowed. By using AISBF as a client, you acknowledge that:
<br><br>• While we do our best to mimic the claude-code CLI, using an unofficial client can lead to account suspension or cancellation <br><br>• While we do our best to mimic the claude-code CLI, using an unofficial client can lead to account suspension or cancellation
<br>• Claude.ai detects prompt patterns to identify unofficial client usage, so it may not work with complex agents and prompts
<br>• You use this software at your own risk and responsibility <br>• You use this software at your own risk and responsibility
<br>• We are not affiliated with Anthropic and cannot guarantee compatibility or continued functionality <br>• We are not affiliated with Anthropic and cannot guarantee compatibility or continued functionality
</p> </p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment