[READ-ONLY] Mirror of https://github.com/just-cameron/gut. git with a gut feeling
0

Configure Feed

Select the types of activity you want to include in your feed.

Fix path to prompt.txt

+4 -2
+4 -2
gut.py
··· 24 24 return api_key 25 25 26 26 def send_to_groq(git_output): 27 - with open('prompt.txt', 'r') as f: 27 + # Construct the path to 'prompt.txt' using os.path.join and os.path.dirname 28 + prompt_path = os.path.join(os.path.dirname(__file__), 'prompt.txt') 29 + with open(prompt_path, 'r') as f: 28 30 prompt = f.read().strip() 29 31 30 32 url = "https://api.groq.com/openai/v1/chat/completions" ··· 54 56 click.echo(result) 55 57 56 58 if __name__ == '__main__': 57 - cli() 59 + cli()