Context
I am using obsidian at work. The AI LLM API are only accessible through a internally manage end point however, they are compatible with openAI schema.
The authentication must go through an OAuth scheme. The token provided by OAuth can be used as an API key in a user defined model in the settings.
The token is only valid 1 hour.
Problem
The token must be updated every hour. I have created a script that will fetch a new tocken and update the configuration value to the new token. However, when running, the API key is store in memory so the configuration update does not propagate.
Obsidian must be restarted for the new key value to be loaded.
Request
OAuth support with token renewal support in the plugin.
Context
I am using obsidian at work. The AI LLM API are only accessible through a internally manage end point however, they are compatible with openAI schema.
The authentication must go through an OAuth scheme. The token provided by OAuth can be used as an API key in a user defined model in the settings.
The token is only valid 1 hour.
Problem
The token must be updated every hour. I have created a script that will fetch a new tocken and update the configuration value to the new token. However, when running, the API key is store in memory so the configuration update does not propagate.
Obsidian must be restarted for the new key value to be loaded.
Request
OAuth support with token renewal support in the plugin.