Skip to content

Project Notes ‐ 07 31 2023 08 02 2023 and 08 04 2023

Levy Tate edited this page Aug 4, 2023 · 3 revisions

Project Notes (07/31/2023, 08/02/2023, and 08/04/2023):

  1. Google API and OAuth: Ben has created Google API and OAuth for testing purposes.

  2. Goal Components: Edit-goal and Create-goal components have been combined to use a single Edit Goal Component, replacing the full code for a more streamlined approach.

  3. UI Changes:

    • Paul has removed the Avatar link on the signup page.
    • There's ongoing experimentation with the layout of TailwindCSS input boxes to replicate other areas on the screen.
  4. ChatGPT: Progress has been made on the GPT-related chat functionality, and it's nearing completion.

  5. Google Calendar Integration: This integration is planned for the future.

  6. Goal Editing Functionality:

    • When navigating to the testing component page, the edit page will include the goal ID.
    • The system will be able to pull the goal ID information from the server to autopopulate the editing interface.
    • Alternatively, a quicker method might involve using the Svelte store to handle editing in an array. When a user clicks edit, the relevant information will go to the end of the array.
  7. Design Transition: Transition from an old design that includes a new link to edit goals (using goal ID). This will involve:

    • Building the page first.
    • Breaking it down into components.
  8. Other Considerations:

    • Creating a paid OpenAI key for testing purposes.
    • Deciding between text area vs. text input for UI design.
    • Including currently calculated price information.
    • Using VBOX to mirror Digital Ocean for load testing to determine costs.
    • Noting the similarity between lists in Python and arrays in JavaScript.

GPT-3.5 Pricing Model with 300 Tokens per Interaction:

  • Input Cost: $0.0015 per 1000 tokens
  • Output Cost: $0.002 per 1000 tokens
  • Total Tokens per Roundtrip Interaction: 300 (200 for input + 100 for output)
  • Number of Roundtrip Interactions with $1: A user can perform 2,000 roundtrip interactions with a budget of $1.

OpenAI Chat API Call Example:

{
    'id': '',
    'object': 'chat.completion',
    'created':,
    'model': 'gpt-3.5-turbo-0613',
    'choices': [
        {
            'index': 0,
            'message': {
                'role': 'assistant',
                'content': 'SMART Goal: Exercise\nSpecific: 30 minutes of exercise, focusing on cardio and strength training, 5 days a week.\nMeasurable: Keep a workout log to track the number of days and duration of exercise each week.\nAchievable: Start with shorter workout sessions and gradually increase duration and intensity as fitness improves. Incorporate activities that are enjoyable and suit individual abilities.\nRelevant: Improve overall fitness, increase strength and endurance, and maintain a healthy lifestyle.\nTime-bound: Maintain the exercise routine for at least 3 months, with continuous progress and improvement.'
            },
            'finish_reason': 'stop'
        }
    ],
    'usage': {
        'prompt_tokens': 174,
        'completion_tokens': 113,
        'total_tokens': 287
    }
}