alpha
Login
or
Join now
cameron.stream
/
gut
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/just-cameron/gut. git with a gut feeling
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Fix path to prompt.txt
author
Cameron Pfiffer
date
2 years ago
(Jul 13, 2024, 1:05 PM +0200)
commit
6fd8622e
6fd8622ef1cb77e3086fffbf071df64475f4aa72
parent
44560566
4456056694cc6276ae0f64a80c4bf2ea59b75467
+4
-2
1 changed file
Expand all
Collapse all
Unified
Split
gut.py
+4
-2
gut.py
View file
Reviewed
···
24
24
return api_key
25
25
26
26
def send_to_groq(git_output):
27
27
-
with open('prompt.txt', 'r') as f:
27
27
+
# Construct the path to 'prompt.txt' using os.path.join and os.path.dirname
28
28
+
prompt_path = os.path.join(os.path.dirname(__file__), 'prompt.txt')
29
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
57
-
cli()
59
59
+
cli()