openai-api-rs
openai-api-rs copied to clipboard
Optional auth header and with api keys | works with azure
In some APIs eg azure the auth headers are optional and you required api-key as header.
https://github.com/dongri/openai-api-rs/pull/158/files#diff-c512864ccf556037c56e04e6a35753d9c842628cb5e367665a65f30bc2829477R143-R150
This will affect the existing process, so it should be avoided.
Please try to come up with a solution using either the path or query parameters.
@dongri how about now
@hiteshjoshi Could you write the actual Azure API endpoint and documentation link?
I want to actually try accessing it. I’d like to clarify whether setting the API key results in an error.
@dongri azure rest docs