@camunda/feel-copilot-client
v0.1.4
Published
The FEEL Copilot
Downloads
39
Maintainers
Keywords
Readme
FEEL Copilot Client
Home of the FEEL Copilot.
Use FEEL Copilot
import Copilot from '@camunda/feel-copilot-client';
const copilot = new Copilot({
invoke: async ({invokeCommandInput, signal}) => {
return fetch('openai/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(invokeCommandInput),
signal
}).json();
}
});
const {
response,
cancel
} = copilot.invoke({prompt: 'What is FEEL?'});
response.then(message => {
// show message
});
// cancel invokation
cancel();Run tests
- run
npm installto install dependencies - run
npm testto run tests
Release client
- Prepare:
- Ask IT to grant you the Member role of the @camunda npm organization
- Run
npm install
- Choose a new version number following SemVer conventions
- Update the CHANGELOG. Commit to
main(but don't push yet). - Make sure you pwd is
client/ - Run
npand follow the instructions. - Verify: 5. New version was published to npm 6. Changes were pushed to GitHub 6. GitHub release was created
