Spaces:
Sleeping
Sleeping
Riley commited on
Commit ·
984ffe4
1
Parent(s): cf9b3dc
fix: Change max_tokens to max_completion_tokens for GPT-5 API compatibility
Browse files- analyzer/llm_client.py +1 -1
- src/analyzer/llm_client.py +1 -1
analyzer/llm_client.py
CHANGED
|
@@ -230,7 +230,7 @@ class LLMClient:
|
|
| 230 |
"messages": messages,
|
| 231 |
"temperature": temperature,
|
| 232 |
"top_p": top_p,
|
| 233 |
-
"
|
| 234 |
"stream": stream,
|
| 235 |
}
|
| 236 |
|
|
|
|
| 230 |
"messages": messages,
|
| 231 |
"temperature": temperature,
|
| 232 |
"top_p": top_p,
|
| 233 |
+
"max_completion_tokens": max_tokens, # GPT-5 uses max_completion_tokens
|
| 234 |
"stream": stream,
|
| 235 |
}
|
| 236 |
|
src/analyzer/llm_client.py
CHANGED
|
@@ -230,7 +230,7 @@ class LLMClient:
|
|
| 230 |
"messages": messages,
|
| 231 |
"temperature": temperature,
|
| 232 |
"top_p": top_p,
|
| 233 |
-
"
|
| 234 |
"stream": stream,
|
| 235 |
}
|
| 236 |
|
|
|
|
| 230 |
"messages": messages,
|
| 231 |
"temperature": temperature,
|
| 232 |
"top_p": top_p,
|
| 233 |
+
"max_completion_tokens": max_tokens, # GPT-5 uses max_completion_tokens
|
| 234 |
"stream": stream,
|
| 235 |
}
|
| 236 |
|