...
Code Block | ||
---|---|---|
| ||
profound.ai.providers.myCustomProvider = { getAPIFunction: function(data) { return async function() { return { message: { type: "hardcoded test response", content: "Hi there. I am a custom model." } }; } }, getAPIParms: function(data) { return data; // pass all available data to the API as parameters }, processResponse: function(response) { const isToolCall = truefalse; const responseMessage = response.message; const content = responseMessage.content; return { responseMessage, content, isToolCall }; } }; module.exports = { // misc configration entries models: { "Custom Test": { provider: "myCustomProvider", model: "custom-test" } } } |
...