Skip to content

Conversation

@lorenzolfm
Copy link

Fix for #77

@netlify
Copy link

netlify bot commented Nov 11, 2023

Deploy Preview for bitdevs-upgrade ready!

Name Link
🔨 Latest commit 71e2b33
🔍 Latest deploy log https://app.netlify.com/sites/bitdevs-upgrade/deploys/654f630e3e8a2900095a353a
😎 Deploy Preview https://deploy-preview-78--bitdevs-upgrade.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@sbddesign sbddesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @lorenzolfm, I really appreciate you taking the initiative and attempting to fix this. I think this is a quality PR, but the root of the problem is really that the Readme file was not current.

My intended approach was that you can just run yarn summarize from the root directory. This script copies the necessary config files into the AI directory, and also invokes the necessary scripts from there. I have opened a PR here where I updated the Readme file to reflect how I intended it to be used. Could you try that out and see if it works for you?

The reason I like this is because I think it keeps the Dev Experience a little easier. If you want to use the template, you can fork it, and all your "unique" changes are confined to things like meetup.ts and the content dir. Furthermore, it keeps more of the config type stuff in plain open sight in the root dir.

Your approach is also valid. But were we to go that route, we would need to:

  • alert people in the readme that there is now a 2nd config file they can update in the AI dir
  • update the upgrade.sh script to reflect that the aiprompt.ts file should be ignored during upgrade

Does anyone have opinions on the better approach? To summarize:

  • My approach is to maintain a single meetup.ts config, and local summaries are invoked from the root directory using yarn summarize.
  • Lorenzo's approach is to have meetup.ts in the root and have a second aiprompt.ts config nested in the ai/src dir, and summaries are invoked from inside of that directory.

Comment on lines +1 to +9
export interface Aiprompt {
summarized: AiType
eli5: AiType
}

type AiType = {
system: string
promptTemplate: string
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice optimization

@lorenzolfm lorenzolfm closed this by deleting the head repository Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants