More flexible handling of optional keys
Hi, awesome project!
I've been using it for a few weeks now and it's been great so far. One small problem I've run into recently is how optional keys are handled.
Currently, the providers that are designated as keyless (namely, AI Horde, Kilo, and OVH) both disable the API key input in the dashboard UI and omit Authorization headers from requests. However, all 3 of these providers can accept keys; each one even has its own "Get API key" link in the "Add key" dialog. So even if a user were to procure an API key for any of these providers, they would not be able to save and use it without creating a duplicate custom provider.
In a similar vein, custom providers that are configured without an API key will still include an Authorization: Bearer no-key header in upstream requests, which makes it impossible to set up a custom provider that accepts both anonymous and authenticated requests.
It would be nice if a key-optional provider still allowed for the user to save a key and then determined at request time whether or not to include an Authorization header in the upstream request based on the presence (or absence) of an actual, non-sentinel API key.
Source: tashfeenahmed/freellmapi