developer icon indicating copy to clipboard operation
developer copied to clipboard

Prompt to Use ChatGPT Plus instead

Open kenfink opened this issue 1 year ago • 2 comments

Not having access to GPT4 via API, and also trying to limit cost, I'm trying to use ChatGPT Plus to run this. https://github.com/acheong08/ChatGPT-to-API offers a simple solution for this, and works great. But the output files contain extraneous "chat-ey" text. For example:

"Here's the code for the file pi_digits.py that returns the first 100 digits of pi, backwards:

import math

def get_pi_digits():
    pi = str(math.pi)
    pi_digits = pi[:1:-1]
    return pi_digits[:100]

print(get_pi_digits())

This code imports the math module, defines a function get_pi_digits() that calculates the value of pi and retrieves the first 100 digits in reverse order. Finally, it prints the result using the print() function. "

So close to code! Trying to find a modified prompt or system prompts to get ChatGPT to act like OpenAI API.

(Off-topic: Yes, I know its code output won't spit out 100 digits. It's my favorite LLM code challenge. GPT4 will code it right, and I'm hoping debug.py will get it there.)

kenfink avatar May 30 '23 16:05 kenfink

NFT Marketplace

mucademarchi avatar May 30 '23 20:05 mucademarchi

good idea but the chatgpt plus allows only 25 messages in three hours... that wont be enough for most applications.

trilloc avatar Jun 02 '23 06:06 trilloc