Open mgiofinc opened 2 years ago
Thanks for the report. I agree that allowing Cicero server to be used offline would be useful. It sounds like adding a new environment variable to specify offline usage of the server would be a good idea?
Thanks for the report @mgiofinc 🙌
This support is now added for cicero-server
. See the new template loading function: cicero-server/app.js#L273. When we merge open PRs for other methods, all of them will allow you to pass options
in the request body.
Thanks for the update @mehmettokgoz.
Unfortunately it seems it only applies to /invoke/:template
, but not to /trigger/:template
, /parse/:template
and /draft/:template
.
Could it be extended also to them?
@mgiofinc Yes, that's right. I didn't refactor trigger
, parse
and draft
yet but they will be updated accordingly. Additionally, initialize
, normalize
, get
, compile,
and archive
methods have this support natively. You can see the implementations from cicero/pulls.
Hello and happy new year!
@mehmettokgoz I was wondering if it is there any update about the refactoring of /trigger/:template
, /parse/:template
and /draft/:template
.
Thanks in advance.
Hi! Is someone still working on this? If not can i ? Thanks...
Hello, I would love to contribute in this organization. can I ?
Bug Report 🐛
When
Template.fromDirectory()
is called withininitTemplateInstance()
(inpackages/cicero-server/app.js
), the options are not passed. This in particular prevents to usecicero-server
offline.Expected Behavior
When "offline" option is set
true
in the request body,cicero-server
does not try to update external models.Current Behavior
When "offline" option is set
true
in the request body,cicero-server
tries anyway to update external models.Steps to Reproduce
cicero-server
as explained in theReadme.md
Draft request
call (it will download external models)Possible Implementation
Change
initTemplateInstance()
with something like: