-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with using @SystemMessage(fromResource=...) in dev mode. #618
Comments
Looking at the issue I think it's quite an easy fix: Line 97 in 2ac7810
The filtering could include the non null values. Possibly update
to:
Thoughts? |
I think you would have to resolve the system message instead and reading it from the file. Not sure where it's done for runtime but you need something similar (or a way to propagate the value) in Dev UI. |
I'm looking a bit more into it, thank you for the suggestion |
cc @jmartisk |
found a super hacky way to make it work.
fromResource still overrides the value. |
That also uncovered another issue. In dev mode a message changed from an external file won't be changed unless I rebuild the app |
Yeah the extension will have to declare that file to be watched for changes, this should be doable. |
Definitely doable and easy 😜 |
#639 takes care of the watches resource files issue |
Watch files configured in `@SystemMessage` or `@UserMessage`
I have moved my prompt content to a file named
my_prompt.txt
toresources/dev/langchain4j/services
My service looks as follows:
The following error happens in dev mode only, I can get around it by building and running it in prod, not fun!
The text was updated successfully, but these errors were encountered: