GPT-5.2 (#682)
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ inputs:
|
||||
openai_model:
|
||||
description: "OpenAI Model"
|
||||
required: false
|
||||
default: "gpt-5.1-2025-11-13"
|
||||
default: "gpt-5.2-2025-12-11"
|
||||
first_issue_response:
|
||||
description: "Example response to a new issue"
|
||||
required: false
|
||||
|
||||
@@ -242,7 +242,7 @@ def generate_pr_review(
|
||||
response = get_response(
|
||||
messages,
|
||||
reasoning_effort="low",
|
||||
model="gpt-5.1-codex",
|
||||
model="gpt-5.2-2025-12-11",
|
||||
text_format={"format": {"type": "json_schema", "name": "pr_review", "strict": True, "schema": schema}},
|
||||
tools=[
|
||||
{
|
||||
|
||||
@@ -12,12 +12,13 @@ import requests
|
||||
from actions.utils.common_utils import check_links_in_string
|
||||
|
||||
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
||||
OPENAI_MODEL = os.getenv("OPENAI_MODEL", "gpt-5.1-2025-11-13")
|
||||
OPENAI_MODEL = os.getenv("OPENAI_MODEL", "gpt-5.2-2025-12-11")
|
||||
MAX_PROMPT_CHARS = round(128000 * 3.3 * 0.5) # Max characters for prompt (50% of 128k context)
|
||||
MODEL_COSTS = {
|
||||
"gpt-5-codex": (1.25, 10.00),
|
||||
"gpt-5.1-codex": (1.25, 10.00),
|
||||
"gpt-5.1-2025-11-13": (1.25, 10.00),
|
||||
"gpt-5.2-2025-12-11": (1.75, 14.00),
|
||||
"gpt-5-nano-2025-08-07": (0.05, 0.40),
|
||||
"gpt-5-mini-2025-08-07": (0.25, 2.00),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user