Closed aerjenn closed 4 months ago
@aerjenn - this looks good to me.
I see that the CI is failing as it runs make install-requirements
which is looking for the src/aoai-simulated-api/requirements.txt
@aerjenn - this looks good to me.
I see that the CI is failing as it runs
make install-requirements
which is looking for thesrc/aoai-simulated-api/requirements.txt
Re-added the requirements.txt for now
This pull request primarily focuses on enabling the simulator to function in environments with varying levels of network access. It introduces three networking scenarios: unrestricted, semi-restricted, and restricted network access. The changes also include the addition of a new Python script to set up TikToken cache and modifications to the Dockerfile to handle different network access scenarios.
Major changes include:
Updates to README.md:
README.md
: Added a new section "Using the simulator with restricted network access". It explains how the simulator can function in three different networking scenarios and the build arguments required for each scenario. [1] [2]New Python Script:
scripts/setup_tiktoken.py
: A new Python script has been added to download the TikToken encoding file and save it in thetiktoken_cache
directory. This script is particularly useful in a restricted network access scenario.Dockerfile Modifications:
src/aoai-simulated-api/Dockerfile
: The Dockerfile has been updated to handle different network access scenarios. It uses build arguments to determine the network type and sets up the TikToken cache accordingly.Removal of Dependencies:
src/aoai-simulated-api/requirements.txt
: All dependencies have been removed from therequirements.txt
file, since a pyproject.toml file with the dependencies is already available.