Open dlflannery opened 1 week ago
Hi @dlflannery, thanks for reaching out. Yes, the clients can be used for both Azure OpenAI and OpenAI. We will add more documentation to make it explicit, although the samples show how to do it. As for the token credential question, OpenAI actually would use the key credential (same as azure when an api key is provided)
I’ve used python connecting directly to OpenAI endpoints but have not used Azure. I would like to use. the lowlevel client but see it’s importing azure packages, although the code seems to handle non-azure cases for authentication. Can I use it as-is to connect directly to the OpenAI. endpoints? Does the “token” credential just become the openai_api_key in that case?
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Windows 11 Pro, Visual Studio 2022 Python Project
Versions
Mention any other details that might be useful