chore: settle product naming across app, widget and deployments

One word everywhere: ReplyPier in UI copy, package and image names, the
replypier.site domains (app/api/docs/help), REPLYPIER_* settings and the
--rp-* design tokens.

- public widget API is window.ReplyPier with replypierId / replypierBaseUrl /
  replypierConfig / replypierToken, loader at webclient/replypier.min.js;
  both bundles rebuilt from source
- NOTICE, llms.txt, CONTRIBUTING, HELP_CENTER_INFRA and the demo runtime
  config rewritten; the demo config ships no third-party keys
- migration adds the ReplyPier managed model value to the AI model enum
- local compose project, database, role, volume and Docker network carry the
  same name
This commit is contained in:
WangShen007 committed 2026-10-26 00:57:22 +08:00
1 parent ff0a09f0e5
commit 20fef2b9f3
1156 files changed
+7267 -7148

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):