Skip to content

Commit

Permalink
Cleanup old structure code and removed unused files and directories
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurvir committed Apr 16, 2024
1 parent 73b62a4 commit 095a8ef
Show file tree
Hide file tree
Showing 33 changed files with 298 additions and 4,490 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ models/*
package*.json
LICENSE
*.md
schemas/*
config/schemas/*
1 change: 0 additions & 1 deletion config/GPT/becknGPT_instructions.txt

This file was deleted.

64 changes: 0 additions & 64 deletions config/GPT/becknGPT_schema.yml

This file was deleted.

67 changes: 12 additions & 55 deletions config/language.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,16 @@
{
"FULFILLMENT_STATUS_CODES": {
"order-picked-up": {
"message": "Your order's on its way!"
},
"order-on-the-way": {
"message": "Hang tight! Your order's cruising over to you."
},
"order-delivered": {
"message": "Package alert! Your order's been delivered."
},
"ticket-issued": {
"message": "All set! Your ticket's ready to go."
},
"ticket-validated": {
"message": "You're all good! Your ticket's been validated."
},
"charging-started": {
"message": "Juice up! Your charging session's begun."
},
"charging-stopped": {
"message": "Heads up! Your charging session's been paused."
},
"charger-not-working": {
"message": "Uh-oh, looks like there's a glitch with your charger ⚡😓. Need help finding another spot? 📍🔍"
},
"charging-completed": {
"message": "Charged and ready! Your battery's full."
},
"checked-in": {
"message": "Welcome! You've successfully checked in."
},
"checked-out": {
"message": "Safe travels! You've checked out."
}
"order-picked-up": "Your order's on its way!",
"order-on-the-way": "Hang tight! Your order's cruising over to you.",
"order-delivered": "Package alert! Your order's been delivered.",
"ticket-issued": "All set! Your ticket's ready to go.",
"ticket-validated": "You're all good! Your ticket's been validated.",
"charging-started": "Juice up! Your charging session's begun.",
"charging-stopped": "Heads up! Your charging session's been paused.",
"charger-not-working": "Uh-oh, looks like there's a glitch with your charger ⚡😓. Need help finding another spot? 📍🔍",
"charging-completed": "Charged and ready! Your battery's full.",
"checked-in": "Welcome! You've successfully checked in.",
"checked-out": "Safe travels! You've checked out."
},
"ALL_MESSAGES": {
"session_cleared": "Your session has been cleared! You're all set to start a new one.",
Expand All @@ -49,26 +27,5 @@
"missing_source": "Mind sharing the starting point for your journey?",
"missing_destination": "Could you let us know your destination?",
"route_list_description": "Here are some route options for you. Which one do you prefer?"
},
"TEST_MESSAGES_USER": [
"---Days before the travel---",
"Adam: Hey Alfred, you around?",
"Adam: I’m hitting Yellowstone National Park on April 12th for 2 days. Got any places to stay?",
"Adam: First one sounds awesome. Lets go with that",
"Adam: You got it - John A. Smith, [email protected], (555) 123-4567.",
"Adam: Sure, lets confirm!",

"---On the date of travel---",
"Adam: Alfred, can you find the best route to Yellowstone national park from Denver?",
"Adam: lets go with Route 1",
"Adam: Can you find ev chargers on the route?",
"Adam: Lets go with Tesla Supercharger",


"---Charging stopped due to an error---",
"Adam: Yeah, let’s find another charger",
"Adam: Let’s go with the second one.",
"Adam: Sure thing, lets book it",
"Adam: Yeah, let’s do it."
]
}
}
17 changes: 0 additions & 17 deletions config/openai.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion controllers/Agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function getResponse(req, res) {
...session.text,
{ role: 'user', content: Body}
];
const response = await ai.getResponseFromOpenAI(messages, raw_yn)
const response = await ai.get_response_or_perform_action(messages, raw_yn)

// prepare raw body if required
const responseBody = raw_yn ? response.raw : response.content;
Expand Down
Loading

0 comments on commit 095a8ef

Please sign in to comment.