MCPcopy Create free account
hub / github.com/QLHazyCoder/FlowPilot / buildOpenAiExtra

Function buildOpenAiExtra

content/sub2api-panel.js:268–279  ·  view source on GitHub ↗
(exchangeData)

Source from the content-addressed store, hash-verified

266}
267
268function buildOpenAiExtra(exchangeData) {
269 const extra = {};
270 const allowedKeys = ['email', 'name', 'privacy_mode'];
271
272 for (const key of allowedKeys) {
273 if (exchangeData?.[key] !== undefined && exchangeData?.[key] !== null && exchangeData?.[key] !== '') {
274 extra[key] = exchangeData[key];
275 }
276 }
277
278 return Object.keys(extra).length ? extra : undefined;
279}
280
281async function getBackgroundState() {
282 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected