Azure Open AI

Using Azure Open AI

  1. Provision an endpoint in Azure, and the models you want to use.

  2. Export and edit the provider, changing the URL as required.

  3. Create a new secret only credential within Control Hub.

  4. Update the provider with that correct path.

Troubleshooting

Sometimes the Tiktoken's tonkenizer is unable to resolve which causes an error on every call. "Failed to resolve 'openaipublic.blob.core.wi". This is caused by networking rules in certain environments.

The following steps resolve the issue by removing the need for the above call to occur in the first place.

  1. Download the tiktoken tokenizer. https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken.

    • If you are unable to download it from this link you may need to try on an unrestricted network.

  2. Rename the file when it is downloaded to 9b5ad71b2ce5302211f9c61530b329a4922fc6a4

    • This needs no extension.

  3. Create a new folder named tiktoken_cache.

    • This folder can have any path for example, C:\tiktoken_cache.

  4. Move the downloaded and renamed item to this folder.

  5. Set an environment variable called TIKTOKEN_CACHE_DIR that points to the folder you created.

Last updated