An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Unsupported credential error from azure.ai.inference to use Llama
strawberrybfs
5
Reputation points
Hi, I was trying to use Llama model following this tutorial:
However, I'm not sure if my credential is correct. I'm using the following format where your-host-name is my AZURE_INFERENCE_ENDPOINT is target in the screenshot and AZURE_INFERENCE_CREDENTIAL is the key in the screenshot. Then I had this error "TypeError: Unsupported credential: "
Can anyone help? Thank you!
client = ChatCompletionsClient( endpoint=os.environ["AZURE_INFERENCE_ENDPOINT"], credential=AzureKeyCredential(os.environ["AZURE_INFERENCE_CREDENTIAL"]), )
Azure OpenAI in Foundry Models
Azure OpenAI in Foundry Models
Sign in to answer