Generative AI Examples is a collection of GenAI examples such as ChatQnA, Copilot, which illustrate the pipeline capabilities of the Open Platform for Enterprise AI (OPEA) project.
os.getenv() returns a string if the environment variable has been set as shown below:
MEGA_SERVICE_PORT = os.getenv("MEGA_SERVICE_PORT", 7778)
which will cause TypeError: 'str' object cannot be interpreted as an integer
Description
os.getenv() returns a string if the environment variable has been set as shown below: MEGA_SERVICE_PORT = os.getenv("MEGA_SERVICE_PORT", 7778) which will cause TypeError: 'str' object cannot be interpreted as an integer
Issues
https://github.com/opea-project/GenAIExamples/issues/261
Type of change
List the type of change like below. Please delete options that are not relevant.
Dependencies
Tests
Set the environment "MEGA_SERVICE_PORT" when starting codegen: