chore(brand): rename the product to ReplyPier

The upstream project name is gone from code, assets, docs and build
output: brand strings, domains (replypier.site and its app/api/docs/help
subdomains), env prefixes, image and network names, the widget's public
JS API (window.ReplyPier, replypierId/BaseUrl/Config/Token), CSS tokens
(--rp-*), file and directory names, and the WordPress plugin package.

- widget loader is now webclient/replypier.min.js; both bundles rebuilt
  from source (backend/assets/widget.{js,css}, frontend/public/webclient)
- NOTICE, llms.txt, CONTRIBUTING, HELP_CENTER_INFRA and config.dev.js
  rewritten rather than string-swapped; the demo config no longer ships
  the previous vendor's Firebase/Razorpay/Google keys
- new migration replypier_ai_model_001 adds REPLYPIER to the managed
  AIModelType and rewrites pre-rename rows
- local compose project, database, role and volume renamed; LOCAL_DEPLOY
  documents carrying the old local data over
This commit is contained in:
WangShen007 committed 2026-10-26 00:51:03 +08:00
1 parent ff0a09f0e5
commit 54b949b392
1156 files changed
+7292 -7147

No files matched your search

+23 -23
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -102,25 +102,25 @@ async def setup_ai(
# Validate model selection based on provider
validate_model_selection(config_data.model_type, config_data.model_name)
# Check if this is a custom model setup (not ChatterMate)
is_custom_model = not (config_data.model_type.lower() == 'chattermate' and config_data.model_name.lower() == 'chattermate')
# Check if this is a custom model setup (not ReplyPier)
is_custom_model = not (config_data.model_type.lower() == 'replypier' and config_data.model_name.lower() == 'replypier')
# Check feature access for custom models
if is_custom_model:
check_custom_models_feature_access(current_user, db)
# Check if using ChatterMate model
if HAS_ENTERPRISE and config_data.model_type.lower() == 'chattermate' and config_data.model_name.lower() == 'chattermate':
# Check if using ReplyPier model
if HAS_ENTERPRISE and config_data.model_type.lower() == 'replypier' and config_data.model_name.lower() == 'replypier':
# Use Groq as provider with keys from env
model_type = AIModelType.CHATTERMATE
model_name = os.getenv('CHATTERMATE_MODEL_NAME', 'gpt-4o-mini')
api_key = os.getenv('CHATTERMATE_API_KEY', '')
model_type = AIModelType.REPLYPIER
model_name = os.getenv('REPLYPIER_MODEL_NAME', 'gpt-4o-mini')
api_key = os.getenv('REPLYPIER_API_KEY', '')
if not api_key:
logger.error("ChatterMate API key not found in environment")
logger.error("ReplyPier API key not found in environment")
raise HTTPException(
status_code=500,
detail="ChatterMate API configuration missing"
detail="ReplyPier API configuration missing"
)
# Create AI configuration
@@ -146,7 +146,7 @@ async def setup_ai(
)
logger.debug(
f"ChatterMate AI setup completed for org {current_user.organization_id}")
f"ReplyPier AI setup completed for org {current_user.organization_id}")
return response
# Regular custom model setup
@@ -281,8 +281,8 @@ async def update_ai_config(
# Validate model selection based on provider
validate_model_selection(config_data.model_type, config_data.model_name)
# Check if this is a custom model setup (not ChatterMate)
is_custom_model = not (config_data.model_type.lower() == 'chattermate' and config_data.model_name.lower() == 'chattermate')
# Check if this is a custom model setup (not ReplyPier)
is_custom_model = not (config_data.model_type.lower() == 'replypier' and config_data.model_name.lower() == 'replypier')
# Check feature access for custom models
if is_custom_model:
@@ -298,18 +298,18 @@ async def update_ai_config(
detail="No active AI configuration found to update"
)
# Check if using ChatterMate model
if HAS_ENTERPRISE and config_data.model_type.lower() == 'chattermate' and config_data.model_name.lower() == 'chattermate':
# Check if using ReplyPier model
if HAS_ENTERPRISE and config_data.model_type.lower() == 'replypier' and config_data.model_name.lower() == 'replypier':
# Use Groq as provider with keys from env
model_type = AIModelType.CHATTERMATE
model_name = os.getenv('CHATTERMATE_MODEL_NAME', 'gpt-4o-mini')
api_key = os.getenv('CHATTERMATE_API_KEY', '')
model_type = AIModelType.REPLYPIER
model_name = os.getenv('REPLYPIER_MODEL_NAME', 'gpt-4o-mini')
api_key = os.getenv('REPLYPIER_API_KEY', '')
if not api_key:
logger.error("ChatterMate API key not found in environment")
logger.error("ReplyPier API key not found in environment")
raise HTTPException(
status_code=500,
detail="ChatterMate API configuration missing"
detail="ReplyPier API configuration missing"
)
# Update AI configuration
@@ -320,7 +320,7 @@ async def update_ai_config(
api_key=api_key
)
logger.info(f"ChatterMate AI config updated for org {current_user.organization_id}")
logger.info(f"ReplyPier AI config updated for org {current_user.organization_id}")
else:
# For custom model, validate API key and/or base_url first if either is
# changing in this request.
@@ -429,8 +429,8 @@ def validate_model_selection(model_type: str, model_name: str):
is what actually rejects a bad model ID.
"""
# ChatterMate is a special case handled separately
if model_type.upper() == "CHATTERMATE" and model_name.lower() == "chattermate":
# ReplyPier is a special case handled separately
if model_type.upper() == "REPLYPIER" and model_name.lower() == "replypier":
return True
if not is_known_provider(model_type):