Seriously!, Are they dumbing down Chatgpt ?!

Not sure how you're putting your functions behind a pay wall so they can't use them again without paying. That's normally why I use the apis and handle everything in a service such as lambda or on my server.
Within the code itself, Inside the menu are other menus

Example of how I am handling menu based on tier.


Code:
// Add the following code in your Google Apps Script project

// Constants for subscription tiers
const TIER_FREE = 'Free';
const TIER_BASIC = 'Basic';
const TIER_PRO = 'Pro';

// Add an onOpen trigger to create the menu
function onOpen() {
  var ui = SpreadsheetApp.getUi();

  // Create the top-level menu
  var topLevelMenu = ui.createMenu('Subscription');
 
  // Add submenus for each tier
  var freeMenu = ui.createMenu(TIER_FREE).addItem('Access Free Features', 'accessFreeFeatures');
  var basicMenu = ui.createMenu(TIER_BASIC).addItem('Access Basic Features', 'accessBasicFeatures');
  var proMenu = ui.createMenu(TIER_PRO).addItem('Access Pro Features', 'accessProFeatures');
 
  // Add the submenus to the top-level menu
  topLevelMenu.addSubMenu(freeMenu).addSubMenu(basicMenu).addSubMenu(proMenu);
 
  // Add the top-level menu to the spreadsheet UI
  topLevelMenu.addToUi();
}

// Functions to be called when accessing each tier
function accessFreeFeatures() {
  if (checkSubscriptionTier(TIER_FREE)) {
    // Code to execute for Free tier features
    SpreadsheetApp.getUi().alert('You are accessing Free features.');
  }
}

function accessBasicFeatures() {
  if (checkSubscriptionTier(TIER_BASIC)) {
    // Code to execute for Basic tier features
    SpreadsheetApp.getUi().alert('You are accessing Basic features.');
  }
}

function accessProFeatures() {
  if (checkSubscriptionTier(TIER_PRO)) {
    // Code to execute for Pro tier features
    SpreadsheetApp.getUi().alert('You are accessing Pro features.');
  }
}

// Function to check the user's subscription tier using Google OAuth and Stripe verification
function checkSubscriptionTier(tier) {
  // Implement your OAuth and Stripe verification logic here
  // Return true if the user is subscribed to the specified tier, otherwise return false
  // You can use the user's Google account information or stored subscription data for verification
  // You'll need to integrate with Google OAuth and Stripe API for authentication and subscription management
 
  // Example implementation:
  var currentUser = Session.getActiveUser().getEmail();
  var userSubscriptions = getStripeSubscriptions(currentUser);
 
  return userSubscriptions.includes(tier);
}

// Function to retrieve the user's subscriptions from Stripe
function getStripeSubscriptions(email) {
  // Implement your logic to retrieve the user's subscriptions from Stripe using the email as identifier
  // This function should communicate with the Stripe API and return the user's subscription tiers
 
  // Example implementation:
  var stripeSubscriptions = ['Free', 'Basic']; // Dummy data, replace with actual implementation
  return stripeSubscriptions;
}

This part I am confused on, need a good starting point to educate myself on Oauth and using them in the cloud services to authenticate. it really is my last hurdle.

// Implement your OAuth and Stripe verification logic here
// Return true if the user is subscribed to the specified tier, otherwise return false
// You can use the user's Google account information or stored subscription data for verification
// You'll need to integrate with Google OAuth and Stripe API for authentication and subscription management
 
Within the code itself, Inside the menu are other menus

Example of how I am handling menu based on tier.


Code:
// Add the following code in your Google Apps Script project

// Constants for subscription tiers
const TIER_FREE = 'Free';
const TIER_BASIC = 'Basic';
const TIER_PRO = 'Pro';

// Add an onOpen trigger to create the menu
function onOpen() {
  var ui = SpreadsheetApp.getUi();

  // Create the top-level menu
  var topLevelMenu = ui.createMenu('Subscription');
 
  // Add submenus for each tier
  var freeMenu = ui.createMenu(TIER_FREE).addItem('Access Free Features', 'accessFreeFeatures');
  var basicMenu = ui.createMenu(TIER_BASIC).addItem('Access Basic Features', 'accessBasicFeatures');
  var proMenu = ui.createMenu(TIER_PRO).addItem('Access Pro Features', 'accessProFeatures');
 
  // Add the submenus to the top-level menu
  topLevelMenu.addSubMenu(freeMenu).addSubMenu(basicMenu).addSubMenu(proMenu);
 
  // Add the top-level menu to the spreadsheet UI
  topLevelMenu.addToUi();
}

// Functions to be called when accessing each tier
function accessFreeFeatures() {
  if (checkSubscriptionTier(TIER_FREE)) {
    // Code to execute for Free tier features
    SpreadsheetApp.getUi().alert('You are accessing Free features.');
  }
}

function accessBasicFeatures() {
  if (checkSubscriptionTier(TIER_BASIC)) {
    // Code to execute for Basic tier features
    SpreadsheetApp.getUi().alert('You are accessing Basic features.');
  }
}

function accessProFeatures() {
  if (checkSubscriptionTier(TIER_PRO)) {
    // Code to execute for Pro tier features
    SpreadsheetApp.getUi().alert('You are accessing Pro features.');
  }
}

// Function to check the user's subscription tier using Google OAuth and Stripe verification
function checkSubscriptionTier(tier) {
  // Implement your OAuth and Stripe verification logic here
  // Return true if the user is subscribed to the specified tier, otherwise return false
  // You can use the user's Google account information or stored subscription data for verification
  // You'll need to integrate with Google OAuth and Stripe API for authentication and subscription management
 
  // Example implementation:
  var currentUser = Session.getActiveUser().getEmail();
  var userSubscriptions = getStripeSubscriptions(currentUser);
 
  return userSubscriptions.includes(tier);
}

// Function to retrieve the user's subscriptions from Stripe
function getStripeSubscriptions(email) {
  // Implement your logic to retrieve the user's subscriptions from Stripe using the email as identifier
  // This function should communicate with the Stripe API and return the user's subscription tiers
 
  // Example implementation:
  var stripeSubscriptions = ['Free', 'Basic']; // Dummy data, replace with actual implementation
  return stripeSubscriptions;
}

This part I am confused on, need a good starting point to educate myself on Oauth and using them in the cloud services to authenticate. it really is my last hurdle.

// Implement your OAuth and Stripe verification logic here
// Return true if the user is subscribed to the specified tier, otherwise return false
// You can use the user's Google account information or stored subscription data for verification
// You'll need to integrate with Google OAuth and Stripe API for authentication and subscription management

Okay, it looks like youre getting there. You do need to get this setup on a server, but that's not very difficult.

Looking at your functions not sure how the user is actually signing up for those tiers, but maybe you're separating into two different services? Doesn't look like you have everything needed even with stripe integration, but could be wrong.

Check out the serverless link I sent and that should help.

Check out the page I sent:
https://blog.logrocket.com/react-stripe-payment-system-tutorial/
You might want to search for another oauth tutorial, but it's not that bad -- it is tedious doing it for the first time.

I'm typing on my phone, so would prob have been able to give better suggestions from my comp.

Either way, you've got this!
 
Check out the serverless link I sent and that should help.

good dummy server would be biz.nf or netlfy it's free, doesn't require a payment system and gives you a database and login system and a subdomain setup.

Great for testing purposes when deciding to scale or so, I think those sites are generous but it's using php admin SQL old school data base, and could get costly.

Overall it's free, and when your ready to move over to aws, ect and reap that 1 year free tier.

Ahh probably off topic, what was that again something about chatGpt
 
Okay, it looks like youre getting there. You do need to get this setup on a server, but that's not very difficult.

Looking at your functions not sure how the user is actually signing up for those tiers, but maybe you're separating into two different services? Doesn't look like you have everything needed even with stripe integration, but could be wrong.

Check out the serverless link I sent and that should help.

Check out the page I sent:
https://blog.logrocket.com/react-stripe-payment-system-tutorial/
You might want to search for another oauth tutorial, but it's not that bad -- it is tedious doing it for the first time.

I'm typing on my phone, so would prob have been able to give better suggestions from my comp.

Either way, you've got this!



Ok so I am starting to understand this Oauth shit I think, Thanks for everyone pointing me in the right direction, need set up my site first it seems. then store tokens from stripe in a database along side the google email to cross reference from my app to load the menu inside google documents.

least I think thats how it going to work for me. IF I am missing anything would love help.

Right now just redoing my google documents addon to use 3.5-trubo-0613 and GPT 4, once the menu and prompts are baked in Ill figure out if I can add a sidebar to pick which model you want to load since cost and all.

My other project is getting out of the OpenAI api cost, and using open source llms like starcoder and wizard coder to use GPT-engineer or cant get oogabooga working with gpt-4-all, going to request he add ooabooga to his commit since he is working hard on it to make it more like gpt-engineer, guess him seeing that blow up gave him hope again.

anyways will leave a screen shot of my addons menu, Going after the BHW vibe.

Updating it from the drop down menu into a dialog box to a sidebar asking for inputs.

Goal here is to have this up and on google workplace market place in the next 30 days, then hopefully in 180 days sell my site for 24 months of recurring fee's from this addon to generate some income to start over once again.
1688231836945.png
 
Last edited:
Are they dumbing down Chatgpt For people who are using it freely or are they dumbing it down for google! and competitors.

It is as if they are playing "Never let them know your next move" type of dumbing down.

In the first days it was answering all the questions better, now a days, it just randomly throws these "Oh, I forgot, Oh, sorry for the overlook!" Loops!.

May be it is Human psychology and the expectations that magnified the answers or may be they are seriously dumbing it down for some reasons.

Any one using the paid version, Is GPT 4 UP ? and is it instantly available after upgrading or it still has some wait time and country/place related wait times ?
Every company will try its best to get you to paid version. So, this might be new trick from them.
 
Back
Top