If you are encountering an "unresolved host" response while trying to hit the endpoint with your API key from an Android device, here are some troubleshooting steps you can follow:
- Check the Endpoint URL: Ensure that the endpoint URL you are using is correctly formatted. It should include
/openai/v1/at the end. For example, it should look likehttps://<your-resource-name>.openai.azure.com/openai/v1/. - Network Connectivity: Verify that your Android device has a stable internet connection. Sometimes, network issues can lead to unresolved host errors.
- DNS Issues: If you are using a custom DNS, it might not be resolving the Azure endpoint correctly. Try switching to a public DNS like Google DNS (8.8.8.8) or Cloudflare DNS (1.1.1.1).
- Firewall and Security Settings: Ensure that there are no firewall or security settings on your network that might be blocking access to the Azure endpoint.
- API Key Validity: Double-check that your API key is correct and has not expired.
- Model Deployment: Confirm that the model deployment is active in your Azure Foundry resource. If the deployment is inactive, it could lead to errors when trying to access the endpoint.
If you continue to face issues after checking these points, consider reaching out to Azure support for further assistance.