Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dzoba/gptrpg
/ cleanAndProcess
Method
cleanAndProcess
agent/ServerAgent.js:93–101 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
91
}
92
93
cleanAndProcess(text) {
94
const
extractedJson = extract(text)[0];
95
96
if
(!extractedJson) {
97
return
null;
98
}
99
100
return
extractedJson;
101
}
102
}
103
104
export
default ServerAgent;
Callers
1
callOpenAI
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected