Never show which AI model writes the analyses
CI / test (push) Successful in 54s
CI / build (push) Successful in 4m7s
CI / deploy (push) Skipped

The model name was in the public config, in every analysis response, in
/v1/credits, on the packages page and in the example page data. Admins
still see it in the prompt trials.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-18 06:30:00 +00:00
co-authored by Claude Opus 5.5
parent 6d2ad4aa0c
commit 03ce97eeaf
8 changed files with 22 additions and 35 deletions
-1
View File
@@ -130,7 +130,6 @@ pub async fn credits(State(state): St, auth: AuthUser) -> ApiResult<Json<Value>>
.await?;
Ok(Json(json!({
"balance": balance.view(),
"analysis_model": state.config.analysis_model,
"ledger": ledger.into_iter().map(|(id, unit, delta, reason, analysis_id, note, at)| json!({
"id": id, "unit": unit, "delta": delta, "reason": reason,
"analysis_id": analysis_id, "note": note, "created_at": rfc3339(at),
+3 -4
View File
@@ -32,13 +32,13 @@ use crate::views::{rfc3339, rfc3339_opt, sha256_hex};
use db::Role;
#[derive(Debug, Clone, sqlx::FromRow)]
/// An analysis as users see it; the model is left out on purpose (a business secret).
pub struct AnalysisRow {
pub id: Uuid,
pub kind: String,
pub chart_id: Option<Uuid>,
pub synastry_id: Option<Uuid>,
pub language: String,
pub model: String,
pub prompt_version: String,
pub status: String,
pub content: Option<Value>,
@@ -48,8 +48,8 @@ pub struct AnalysisRow {
pub completed_at: Option<OffsetDateTime>,
}
const ANALYSIS_COLUMNS: &str = "id, kind, chart_id, synastry_id, language, model, prompt_version, status, content, \
error, credits_charged, created_at, completed_at";
const ANALYSIS_COLUMNS: &str = "id, kind, chart_id, synastry_id, language, prompt_version, status, content, error, \
credits_charged, created_at, completed_at";
impl AnalysisRow {
pub fn view(&self) -> Value {
@@ -59,7 +59,6 @@ impl AnalysisRow {
"chart_id": self.chart_id,
"synastry_id": self.synastry_id,
"language": self.language,
"model": self.model,
"prompt_version": self.prompt_version,
"status": self.status,
"content": self.content,
-2
View File
@@ -134,8 +134,6 @@ async fn public_config(State(state): St) -> Json<Value> {
Json(json!({
"google_login": { "enabled": state.google.enabled(), "client_id": c.google_client_ids.first() },
"locales": c.supported_locales,
"analysis_model": c.analysis_model,
"summary_model": c.summary_model,
"password_login": c.password_login,
"mock_payments": c.mock_payments,
"signup_mode": c.signup_mode.as_str(),