This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# add this file to your .githooks folder, name it pre-commit | |
# in your .gitconfig file, add the below: | |
# [core] | |
# hooksPath = .githooks | |
# after run the following command in console: git config --local include.path .gitconfig | |
# Optionally, add ## TODOs: to the end of your README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import openai | |
openai.api_key = "OPENAI_API_KEY" # Update with openai key | |
MODEL = 'gpt-3.5-turbo' | |
def length_of_story(story): | |
# Want to half the tokens needed so chatgpt can respond | |
return len(story / 3000) |