MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / parseContentFilterResultsForChoiceOutput

Function parseContentFilterResultsForChoiceOutput

out/cli.cjs:78488–78494  ·  view source on GitHub ↗
(_a5 = {})

Source from the content-addressed store, hash-verified

78486 return error ? parseError(error) : camelCaseKeys(rest);
78487}
78488function parseError(error) {
78489 var _a5;
78490 return {
78491 error: Object.assign(Object.assign({}, error), { details: (_a5 = error["details"]) !== null && _a5 !== void 0 ? _a5 : [] })
78492 };
78493}
78494function parseContentFilterResultsForChoiceOutput(_a5 = {}) {
78495 var _b2;
78496 var { error } = _a5, successResult = __rest(_a5, ["error"]);
78497 return error ? {

Callers 2

getCompletionsResultFunction · 0.85
getChatCompletionsResultFunction · 0.85

Calls 2

__restFunction · 0.85
camelCaseKeysFunction · 0.85

Tested by

no test coverage detected