V0.7.6 first start setup | CONFIG_KEY_NOT_FOUND #294
Replies: 26 comments
|
Hi Sam, thank you for the input!! I think I fixed the 1st issue. As for the second, I see you do use security for local AI, I'll investigate that issue. Okay I'm making a new build of 0.7.6, if you want to see if it fixes the issues, that would be great, let me know! |
|
Hi Keith, yes this problem is fixed and also the models are now automatically loaded (doesn't working before) as soon I input my API key. But unfortunately it doesn't format my document any more: Do you have any idea what the cause might be? Thanks. Sam |
|
@slu-010101 Hi Sam, Thank you for reporting that the issue is fixed and sorry to hear you have another bug. I will look into it before the next release. Was it a new install? (The librarian only runs once.) There is a parsing error. I'm not sure what changed that would cause it to happen but I did make some small fixes and improved the error logging. Can you try the new build when you have time? Thank you so much for your help!! |
|
BTW, you were exactly correct that I didn't re-run the model fetch after the user put in the api key, but as you noticed I changed it now to handle that case. If you have any more issues or errors, please let me know! I don't have good hardware for doing AI so when I test via OpenRouter or Together.ai, it all works perfectly, but there is no harmony tool call parsing,etc. I want to make sure you are happy before I make my next release! |
|
Not working, unfortunately: I tried it always with a new clean LibreOffice profile and the last version (check the sha256 sum). |
|
The log files are so helpful. I will investigate it more this weekend and make a fix. Thank you for letting me know!! |
|
Hi @slu-010101 I made a new build, can you try it out? What's weird is that I added new code so I'm not sure how it could have worked in the past? d1dfdc4 I also added more logging around the failure cases also just in case to help. Can you try it out when you have time and let me know how it goes? |
|
Thank you @KeithCu last version working again. Note: The list of the states was generated by the WriterAgent before.
|
|
@slu-010101 Hi Sam, Thank you for the good news and the bug report. I can't repro the issue but I see a change that could possibly have caused the issue - but it was many ago! I made a new build that should fix it if that issues happens: b5f7df0 and also it has very detailed logging for that error also. I made a new build, can you please try it out when you have time? , I'm sorry you run into issues that I don't see. I've got 900 test cases, plus I use the app daily, so it's been stable for me. The core code is not changing much now (mostly the specific modules like grammar checker, specific handler for math, or other UNO, etc.) so there shouldn't be too many regression happening. Thanks again for the help! Have you tried the grammar checker yet? It's not perfect yet, but it should be pretty stable and efficient and smart. Also, have you tried out the math? AI's are awesome at TeX, so the code works well now: |
@KeithCu yes the new build fix this issue, thank you very much for this super fast bug fix!
No worries please, I'm very happy with the add-on and must thank you for the work on open source software.
Not yet, it's on my to do list for next week. Thank you for this add-on. |
|
Okay very good, and I'm glad to hear you are happy with the add-on. With your approval I will make a new release for the LO website and GH. Good you didn't test the grammar checker yet, it took some time to get the architecture correct since it's async but the LO method is sync, and that required a bit of work. (I return no errors, and then look it up in the background, and then when the inevitably ask again as you keep typing, then I report the errors. I've not done a lot of testing, but it works!!) There's a chance some errors miss some times, or take a little while to show up, but those are not huge problems. It's pretty stable now for 34 languages so turn it on when you have time to play with it! I tested it with English, Spanish and Japanese ;-) the runtime behavior section of the document describes what features I needed to make it work well between the sync versus async design. It needs more work as also discussed in the document but it's useful now. https://github.com/KeithCu/writeragent/blob/master/docs/realtime-grammar-checker-plan.md Also be sure to try this at some point: "Please review my document and add comments." Have you seen that? You might not need to prompt it to add comments, it should just trigger on "Review, give feedback or suggestions", but specific tool references always make the advice stronger "Do web research and write a colorful, detailed report on...". Try the review feature. I told LLM to put in both positive and negative comments, to make it more fun. The new release is up there, check it out now. BTW, I wrote 3 articles about WriterAgent, this is the first, you'll find the links to the others in there: https://keithcu.com/wordpress/?p=5060 Go through it if you are interested because I try to make them educational and to both programmers and regular people. I referenced you a couple of times ;-) I'm working on a new post for the grammar checker since it's a challenging problem. BTW I never make a new user config directory anymore, so don't bother. If you see a bug, it will be in a new or fresh config. If you just take the time to give me the error message and relevant log entries, that should tell me enough, and if not I'll make a new build with better logging. I have a ton of debug + error logging right now, but there are edge cases all over the project, and in fact this situation of harmony errors showing up isn't even a real error on my side, except by the LLM! It was giving us extra special prompt template strings at the end of the tool call requests, basically garbage, and we were sending them back to them in the next message as you do in a conversation, figuring it was valid, and it wasn't liking them because they are special strings, so it was complaining. So I just strip them out. Thank you, and enjoy the new version and let me know how it goes. |
|
@KeithCu unfortunately there are more issues, sorry! |
|
Ah, I see. I will research it when I have time. Thank you for the report! BTW. for now, just dig up an old USER.md and it will skip past the librarian ;-) Update: I did research, it's another case of those leaked template tokens! They send them to us, but if we send the back in the conversation history, they get mad! I'll make another fix. |
|
@slu-010101 Okay try the new release on GitHub when you have a chance. Thank you for the report!! |
|
@KeithCu unfortunately it doesn't working, I tried it with an empty/new LibreOffice profile.
|
|
Hi Sam, thank you for the report. I did more research and I can't see any issue on my side. It's those same harmony tokens but I strip them and never send them so I don't know how it can complain!! Can you please try this debug build when you have time which gives me more info? Delete the log file before you try the repro so it's small. This is a ZIP, I can't upload OXT in chat. So just rename first ;-) Let me know what you find when you have time. Thank you!! |
|
Here are the output of WriterAgent: And in the debug log: Is the "/v1" missing here? Edit: |
|
Those logs were very helpful. Please try this new debug build! |
|
Can you please paste more lines above the 500 error? I want to see full request and params. BTW, the /v1 is not an issue, it's more with the request shape, little details that have changed in the parameters. This is an interesting problem, I appreciate your help tracking this down! |
|
Here are more logs above the 500 error: |
|
Those logs are so helpful! I researched it and found a couple of issues. There was a little bug where I didn't stop the smolagents loop immediately after switch_to_document_mode succeeds, preventing the unnecessary extra LLM call that was failing on LocalAI. I so appreciate your help. Please try this out. It's another debug build. Please let me know what you find! Remember, you can delete the USER.md to trigger the librarian on the next startup, no need to wipe the LO config. TY!! |
|
Yes it's working now, tested with a new LibreOffice profile. |
|
Great news!! I put in a test case for this issue and every other bug to keep things always more stable. Usually the error logs are enough but this one required the DEBUG level to see more info on what happened before the error. I'm glad you are happy with the program. Let me know how it goes with Add comment feature and the grammar checker. I'm very curious to hear. I love both of those features. |
|
BTW, I just added a new feature: Enter to Send / Record. Shift+enter for CR. There's an option for now to turn it off, but I think most people will like it and usually don't put CRs in there. It's on GH now if you want to try. |
|
Okay this is all fixed, I'll close this for now. Create new discussions with any new issues. I'm making many changes to the grammar but it should be a good prototype what you have. I was using sqlite but I'm now persisting in the document (with the version on GH) instead of sqlite. There are pros and cons to both approaches but I like keeping it with the document so that if you open files on separate computers, they will all share the errors! |




Uh oh!
There was an error while loading. Please reload this page.
Hi Keith,
I saw on two different users that WriterAgent don't work after first setup:
Closing LibreOffice after setup and start it again fix this issue. Is it possible there is a bug in the first configuration process since I enter first the localai server and in the next step the API key?
The new button to open the JSON config is awesome!
Sam
All reactions