Spaces:
Running
Running
Update github_repo_analyzer.py
Browse files- github_repo_analyzer.py +4 -0
github_repo_analyzer.py
CHANGED
|
@@ -164,6 +164,10 @@ def analyze_pull_requests(github_repo, max_prs):
|
|
| 164 |
|
| 165 |
def call_llm(client, prompt, model="nousresearch/hermes-3-llama-3.1-405b:free", max_tokens=4096):
|
| 166 |
response = client.chat.completions.create(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
model=model,
|
| 168 |
messages=[
|
| 169 |
{"role": "user", "content": prompt}
|
|
|
|
| 164 |
|
| 165 |
def call_llm(client, prompt, model="nousresearch/hermes-3-llama-3.1-405b:free", max_tokens=4096):
|
| 166 |
response = client.chat.completions.create(
|
| 167 |
+
extra_headers={
|
| 168 |
+
"HTTP-Referer": "https://patched.codes"
|
| 169 |
+
"X-Title": "Patched GitHub Repo Analyzer"
|
| 170 |
+
}
|
| 171 |
model=model,
|
| 172 |
messages=[
|
| 173 |
{"role": "user", "content": prompt}
|