Unsupported credential error from azure.ai.inference to use Llama
strawberrybfs
0
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"]), )
Sign in to answer