MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / isUnexpected

Function isUnexpected

out/cli.cjs:77558–77567  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

77556 "POST /deployments/{deploymentId}/completions": ["200"],
77557 "POST /deployments/{deploymentId}/chat/completions": ["200"],
77558 "POST /deployments/{deploymentId}/images/generations": ["200"],
77559 "POST /deployments/{deploymentId}/embeddings": ["200"],
77560 "GET /operations/images/{operationId}": ["200"],
77561 "POST /images/generations:submit": ["202"],
77562 "GET /images/generations:submit": ["200", "202"]
77563};
77564function isUnexpected(response) {
77565 const lroOriginal = response.headers["x-ms-original-url"];
77566 const url2 = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url);
77567 const method = response.request.method;
77568 let pathDetails = responseMap[`${method} ${url2.pathname}`];
77569 if (!pathDetails) {
77570 pathDetails = getParametrizedPathSuccess(method, url2.pathname);

Calls 2

includesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…