style(gateway): format openai-http
This commit is contained in:
@@ -111,9 +111,7 @@ function buildAgentPrompt(messagesUnknown: unknown): {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function resolveAgentIdFromHeader(
|
function resolveAgentIdFromHeader(req: IncomingMessage): string | undefined {
|
||||||
req: IncomingMessage,
|
|
||||||
): string | undefined {
|
|
||||||
const raw =
|
const raw =
|
||||||
getHeader(req, "x-clawdbot-agent-id")?.trim() ||
|
getHeader(req, "x-clawdbot-agent-id")?.trim() ||
|
||||||
getHeader(req, "x-clawdbot-agent")?.trim() ||
|
getHeader(req, "x-clawdbot-agent")?.trim() ||
|
||||||
@@ -122,7 +120,9 @@ function resolveAgentIdFromHeader(
|
|||||||
return normalizeAgentId(raw);
|
return normalizeAgentId(raw);
|
||||||
}
|
}
|
||||||
|
|
||||||
function resolveAgentIdFromModel(model: string | undefined): string | undefined {
|
function resolveAgentIdFromModel(
|
||||||
|
model: string | undefined,
|
||||||
|
): string | undefined {
|
||||||
const raw = model?.trim();
|
const raw = model?.trim();
|
||||||
if (!raw) return undefined;
|
if (!raw) return undefined;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user