feat: add webhook /metrics endpoint with Prometheus output (5.2)
This commit is contained in:
1 parent
98d2557c32
commit
5bc1486be6
5 files changed
+126
-8
No files matched your search
@@ -1,6 +1,10 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import { buildGooseAgentEnvironment, extractGooseFinalText, redactProcessArgs } from "../src/ai/gooseCli.js";
|
||||
import {
|
||||
buildGooseAgentEnvironment,
|
||||
extractGooseFinalText,
|
||||
redactProcessArgs
|
||||
} from "../src/ai/gooseCli.js";
|
||||
import { config } from "../src/config.js";
|
||||
|
||||
const originalEffort = config.gooseThinkingEffort;
|
||||
@@ -38,7 +42,7 @@ test("extractGooseFinalText strips a surrounding markdown fence", () => {
|
||||
messages: [
|
||||
{
|
||||
role: "assistant",
|
||||
content: [{ type: "text", text: "```json\n{\"ok\":true}\n```" }]
|
||||
content: [{ type: "text", text: '```json\n{"ok":true}\n```' }]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user