-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flowchart of how this works #80
Comments
Sorry, what is it that you're trying to do? I'm wondering if you're trying to understand the code to educate/help or if you're trying to use the free ChatGPT to run Humanify? In case it's the latter, there's unfortunately no way to use without paying to OpenAI. But you don't need the plus subscription, only a pay-as-you-go API access. Humanify uses some clever tricks on API level to force the output to include only the renames, so that's why it would not work with the basic chatgpt.com |
If it's the former, I'd love to refactor the code to make it easier to approach! On pseudocode level humanify works about like this:
So at least one request to ChatGPT is made per variable. The actual rename is made without ChatGPT. Does this answer your question? |
No, my mistake for not being clear enough in my message, I wanted mainly to see how this works internally via a graph that explain the steps your tool do to deliver the finally result... a visual representation. eg.
If this still doesn't make sense, forget about this, I don't want to take up your development time. |
Yes that would be enough for the moment, I will have to examine the source-code, if I still have questions then I will comeback (I just wanted ChatGPT to generate the graph but I don't have the Plus and tried several times then told me that I reached the limit, I will try again today. As this can give anyone a clear idea of the workflow. |
@neoOpus I sort of looked at this myself the other day to understand things better; I found it easiest to start at the CLI command, which call humanify/src/commands/openai.ts Lines 20 to 30 in a518471
You can see the definition for Lines 6 to 27 in a518471
You can see the humanify/src/plugins/openai/openai-rename.ts Lines 6 to 38 in a518471
You can similarly follow the code flows for the local and gemini based CLI options. |
Thank you so much Glenn for your help! I really appreciate! I have a clearer idea now, but I still have some reading to do, I am thinking about feeding the source-code to an LLM to make the flowchart from it, but I still didn't find that solution yet! BTW, I've been reading your profile and I really liked it, we have a similar approach about learning and doing things! |
Hi,
Could you provide in the readme a graph or flowchart illustrating how this works, or generate one using LLM to help me understand the code better? I'm particularly curious about whether multiple passes are made to enhance the final code. I tried with ChatGPT but I don't have the Plus, and it just failed to generate one...
The text was updated successfully, but these errors were encountered: