You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specs
Leon version: 1.0.0-beta.7
OS (or browser) version: Windows 11 - 64 Bit
Node.js version: 19.8.1
Complete "leon check" (or "npm run check") output:
ℹ️ Leon version
✅ 1.0.0-beta.7
ℹ️ pipenv run python bridges/python/main.py scripts/assets/intent-object.json
✅ {"domain": "leon", "skill": "random_number", "action": "run", "lang": "en", "utterance": "Give me a random number", "entities": [], "slots": {}, "output": {"type": "end", "codes": ["12"], "speech": "12", "core": {}, "options": {}}}
ℹ️ Global resolvers NLP model state
✅ Found and valid
ℹ️ Skills resolvers NLP model state
✅ Found and valid
ℹ️ Main NLP model state
✅ Found and valid
ℹ️ Amazon Polly TTS ⚠️ Amazon Polly TTS is not yet configured
ℹ️ Google Cloud TTS/STT ⚠️ Google Cloud TTS/STT is not yet configured
ℹ️ Watson TTS ⚠️ Watson TTS is not yet configured
ℹ️ Offline TTS ⚠️ Cannot find bin/flite/flite. You can setup the offline TTS by running: "npm run setup:offline-tts"
ℹ️ Watson STT ⚠️ Watson STT is not yet configured
ℹ️ Offline STT ⚠️ Cannot find bin/coqui/huge-vocabulary.scorer. You can setup the offline STT by running: "npm run setup:offline-stt"
.: REPORT :.
ℹ️ Here is the diagnosis about your current setup
✅ Run
✅ Run skills
✅ Reply you by texting ⚠️ Amazon Polly text-to-speech ⚠️ Google Cloud text-to-speech ⚠️ Watson text-to-speech ⚠️ Offline text-to-speech ⚠️ Google Cloud speech-to-text ⚠️ Watson speech-to-text ⚠️ Offline speech-to-text
✅ Hooray! Leon can run correctly
ℹ️ If you have some yellow warnings, it is all good. It means some entities are not yet configured
ISSUE:
Expected Behavior
Successfully integrate OpenAI's GPT-3 with Leon and execute a cURL command to test the integration without any errors.
Actual Behavior
Upon executing the cURL command, a "Route not found" error is received:
Code Snippet:
{"message":"Route POST:/v1/leon/gpt3_integration/gpt3_skill/run not found","error":"Not Found","statusCode":404}
How Do We Reproduce?
Create a GPT-3 integration package in Leon under the path "*.leon\server\src\packages\gpt3_integration" with the following structure:
gpt3_integration/
├── config/
│ ├── config.json
│ └── config.sample.json
├── skills/
│ ├── gpt3_skill/
│ │ ├── init.py
│ │ └── main.py
│ └── init.py
└── init.py
Modify the "*.leon\server\src\routes\index.js" file to include the following code:
Specs
Leon version: 1.0.0-beta.7
OS (or browser) version: Windows 11 - 64 Bit
Node.js version: 19.8.1
Complete "leon check" (or "npm run check") output:
ℹ️ Leon version
✅ 1.0.0-beta.7
ℹ️ node --version
✅ v19.8.1
ℹ️ npm --version
✅ 9.6.2
ℹ️ pipenv --version
✅ pipenv, version 2023.3.20
ℹ️ pipenv --where
✅ C:\Users\Administrator.leon\bridges\python
ℹ️ pipenv run python --version
✅ Python 3.9.10
ℹ️ pipenv run python bridges/python/main.py scripts/assets/intent-object.json
✅ {"domain": "leon", "skill": "random_number", "action": "run", "lang": "en", "utterance": "Give me a random number", "entities": [], "slots": {}, "output": {"type": "end", "codes": ["12"], "speech": "12", "core": {}, "options": {}}}
ℹ️ Global resolvers NLP model state
✅ Found and valid
ℹ️ Skills resolvers NLP model state
✅ Found and valid
ℹ️ Main NLP model state
✅ Found and valid
ℹ️ Amazon Polly TTS
⚠️ Amazon Polly TTS is not yet configured
ℹ️ Google Cloud TTS/STT
⚠️ Google Cloud TTS/STT is not yet configured
ℹ️ Watson TTS
⚠️ Watson TTS is not yet configured
ℹ️ Offline TTS
⚠️ Cannot find bin/flite/flite. You can setup the offline TTS by running: "npm run setup:offline-tts"
ℹ️ Watson STT
⚠️ Watson STT is not yet configured
ℹ️ Offline STT
⚠️ Cannot find bin/coqui/huge-vocabulary.scorer. You can setup the offline STT by running: "npm run setup:offline-stt"
.: REPORT :.
⚠️ Amazon Polly text-to-speech
⚠️ Google Cloud text-to-speech
⚠️ Watson text-to-speech
⚠️ Offline text-to-speech
⚠️ Google Cloud speech-to-text
⚠️ Watson speech-to-text
⚠️ Offline speech-to-text
ℹ️ Here is the diagnosis about your current setup
✅ Run
✅ Run skills
✅ Reply you by texting
✅ Hooray! Leon can run correctly
ℹ️ If you have some yellow warnings, it is all good. It means some entities are not yet configured
ISSUE:
Expected Behavior
Successfully integrate OpenAI's GPT-3 with Leon and execute a cURL command to test the integration without any errors.
Actual Behavior
Upon executing the cURL command, a "Route not found" error is received:
Code Snippet:
{"message":"Route POST:/v1/leon/gpt3_integration/gpt3_skill/run not found","error":"Not Found","statusCode":404}
How Do We Reproduce?
Create a GPT-3 integration package in Leon under the path "*.leon\server\src\packages\gpt3_integration" with the following structure:
gpt3_integration/
├── config/
│ ├── config.json
│ └── config.sample.json
├── skills/
│ ├── gpt3_skill/
│ │ ├── init.py
│ │ └── main.py
│ └── init.py
└── init.py
Modify the "*.leon\server\src\routes\index.js" file to include the following code:
Code Snippet:
const gpt3SkillRoute = require("../packages/gpt3_integration/skills/gpt3_skill/route");
router.use("/v1/leon/gpt3_integration/gpt3_skill", gpt3SkillRoute);
Create a "route.js" file in the "gpt3_skill" folder with the following content:
Code Snippet:
const express = require("express");
const router = express.Router();
const gpt3SkillController = require("./controller");
router.post("/run", gpt3SkillController.run);
module.exports = router;
Implement the GPT-3 API call in the "main.py" file.
Execute the following cURL command:
Code Snippet:
curl -X POST -H "Content-Type: application/json" -d "{"type": "text", "content": "What is the capital of France?"}" http://localhost:1337/v1/leon/gpt3_integration/gpt3_skill/run
Extra (like a sample repo to reproduce the issue, etc.)
Any guidance or assistance in fixing the "Route not found" error and successfully integrating GPT-3 with Leon would be greatly appreciated.
The text was updated successfully, but these errors were encountered: