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

Function serializeChatRequestUserMessage

out/cli.cjs:77666–77672  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

77664function tocamelCase(str2) {
77665 return str2.toLowerCase().replace(/([_][a-z])/g, (group) => group.toUpperCase().replace("_", ""));
77666}
77667function toSnakeCase(str2) {
77668 return str2.replace(/([A-Z])/g, (group) => `_${group.toLowerCase()}`).replace(/^_/, "");
77669}
77670
77671// node_modules/@azure/openai/dist-esm/src/utils/serializeUtil.js
77672function serializeChatRequestUserMessage(obj) {
77673 return {
77674 role: obj["role"],
77675 content: typeof obj["content"] === "string" ? obj["content"] : obj["content"].map(serializeChatRequestContentItemUnion),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…