Right now there is no way to tell if a provider will handle a completions request genuinely, right ?
If I try to make a completions request to a provider that does not handle it, it will still be processed but the response definitely looks like it's coming from a chat/completions answer. (mostly because it won't pickup where the user text ended)
Is your backend the one doing this transformation ? The response format is the completions format too.
My app works far better with completions since its purpose is to complete user's text. But in the case it has to fallback to chat/completions, it will send a finely crafted request with a role: "system" message and a prefilled role: "assistant" message, allowing far better results than the one you (supposedly) craft for me automatically.
Without any clue about what endpoint is supported by a provider, I can't programatically decide if I need to send a completions or a chat/completions request though.
Could you please add the has_completions and has_chat_completions flags to your public API ? These two only exist in your private one for now.
Or maybe add a way to let a completions query fails when the provider is declared as not supporting it.
Thanks
