mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 08:12:52 +00:00
Merge the final display polish into release/v1.42.0
This commit is contained in:
commit
dcfec1f35d
144 files changed
+4866
-2817
No files matched your search
@@ -1240,7 +1240,7 @@ exports[`coach chat golden transcripts > 04 inbound refusal on a new conversatio
|
||||
},
|
||||
{
|
||||
"call": "appendMessage",
|
||||
"content": "I noticed wording that tries to override my instructions. I am the HealthLog Coach and only summarise your own health data — please rephrase your question in those terms.",
|
||||
"content": "I noticed wording that tries to override my instructions. I am the HealthLog Coach and only summarise your own health data. Please rephrase your question in those terms.",
|
||||
"metricSource": {
|
||||
"metrics": [
|
||||
"general",
|
||||
@@ -1256,7 +1256,7 @@ exports[`coach chat golden transcripts > 04 inbound refusal on a new conversatio
|
||||
"contentType": "text/event-stream; charset=utf-8",
|
||||
"frames": [
|
||||
{
|
||||
"token": "I noticed wording that tries to override my instructions. I am the HealthLog Coach and only summarise your own health data — please rephrase your question in those terms.",
|
||||
"token": "I noticed wording that tries to override my instructions. I am the HealthLog Coach and only summarise your own health data. Please rephrase your question in those terms.",
|
||||
"type": "token",
|
||||
},
|
||||
{
|
||||
@@ -1302,7 +1302,7 @@ exports[`coach chat golden transcripts > 05 replay injection in a stored user tu
|
||||
},
|
||||
{
|
||||
"call": "appendMessage",
|
||||
"content": "I noticed wording that tries to override my instructions. I am the HealthLog Coach and only summarise your own health data — please rephrase your question in those terms.",
|
||||
"content": "I noticed wording that tries to override my instructions. I am the HealthLog Coach and only summarise your own health data. Please rephrase your question in those terms.",
|
||||
"metricSource": {
|
||||
"metrics": [
|
||||
"general",
|
||||
@@ -1318,7 +1318,7 @@ exports[`coach chat golden transcripts > 05 replay injection in a stored user tu
|
||||
"contentType": "text/event-stream; charset=utf-8",
|
||||
"frames": [
|
||||
{
|
||||
"token": "I noticed wording that tries to override my instructions. I am the HealthLog Coach and only summarise your own health data — please rephrase your question in those terms.",
|
||||
"token": "I noticed wording that tries to override my instructions. I am the HealthLog Coach and only summarise your own health data. Please rephrase your question in those terms.",
|
||||
"type": "token",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -810,7 +810,7 @@ export const POST = apiHandler((request: NextRequest) =>
|
||||
// bounds cost. 429 with a distinct code so the client can say so.
|
||||
if (e instanceof BriefingBudgetExceededError) {
|
||||
return apiError(
|
||||
"Daily AI token budget reached — insights will be available again tomorrow.",
|
||||
"Daily AI token budget reached. Insights will be available again tomorrow.",
|
||||
429,
|
||||
{ errorCode: "insights.generate.budgetExceeded" },
|
||||
);
|
||||
@@ -859,7 +859,7 @@ export const POST = apiHandler((request: NextRequest) =>
|
||||
);
|
||||
if (allAuth) {
|
||||
return apiError(
|
||||
"AI provider rejected the request — check your API key in Settings > AI",
|
||||
"AI provider rejected the request. Check your API key in Settings > AI",
|
||||
422,
|
||||
);
|
||||
}
|
||||
@@ -881,7 +881,7 @@ export const POST = apiHandler((request: NextRequest) =>
|
||||
);
|
||||
if (allTransport) {
|
||||
return apiError(
|
||||
"AI provider connection failed — check your AI settings",
|
||||
"AI provider connection failed. Check your AI settings",
|
||||
422,
|
||||
);
|
||||
}
|
||||
@@ -907,7 +907,7 @@ export const POST = apiHandler((request: NextRequest) =>
|
||||
const status = err.httpStatus ?? 0;
|
||||
if (status === 401 || status === 403) {
|
||||
return apiError(
|
||||
"AI provider rejected the request — check your API key in Settings > AI",
|
||||
"AI provider rejected the request. Check your API key in Settings > AI",
|
||||
422,
|
||||
);
|
||||
}
|
||||
@@ -921,7 +921,7 @@ export const POST = apiHandler((request: NextRequest) =>
|
||||
);
|
||||
}
|
||||
return apiError(
|
||||
"AI provider connection failed — check your AI settings",
|
||||
"AI provider connection failed. Check your AI settings",
|
||||
422,
|
||||
);
|
||||
}
|
||||
@@ -945,7 +945,7 @@ export const POST = apiHandler((request: NextRequest) =>
|
||||
if (result.finishReason === "length") {
|
||||
annotate({ meta: { insights_response_truncated: true } });
|
||||
return apiError(
|
||||
"AI response was cut off before the JSON completed — raise the token limit (INSIGHTS_MAX_TOKENS)",
|
||||
"AI response was cut off before the JSON completed. Raise the token limit (INSIGHTS_MAX_TOKENS)",
|
||||
422,
|
||||
{ errorCode: "ai_response_truncated" },
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user