Use this folder to test the connectivity of the LLM Service.
create .env
file
# replace by your gpt-4o api key
OPENAI_API_KEY="YOUR_TOKEN"
Refer to this document if your want to use other models like Qwen: https://midscenejs.com/choose-a-model
npm install
npm run test
- How to resolve
"OPENAI_BASE_URL" is already defined and was NOT overwritten
?
Remove the OPENAI_BASE_URL
from your system environment variables so that the .env
file can take effect.