Skip to content

Commit

Permalink
Use smaller prompt context for new ft model (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen authored Aug 28, 2024
1 parent 8b3f176 commit 40a1629
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ai/ft/dataset_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
from typing import Any

from llm_lib import REVISE_APP_BASE_PROMPT, SYSTEM_INSTRUCTION
from llm_lib import REVISE_APP_BASE_PROMPT, SYSTEM_INSTRUCTION_PART_1

EDIT_HERE_MARKER = " # <--- EDIT HERE"

Expand Down Expand Up @@ -57,7 +57,7 @@ def process_goldens():
"messages": [
{
"role": "system",
"content": SYSTEM_INSTRUCTION,
"content": SYSTEM_INSTRUCTION_PART_1,
},
{
"role": "user",
Expand Down
2 changes: 1 addition & 1 deletion ai/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def apply_patch(original_code: str, patch: str) -> ApplyPatchResult:


def adjust_mesop_app(code: str, msg: str, line_number: int | None):
model = "ft:gpt-4o-mini-2024-07-18:mesop:with-component-prompting:A0dNmNzq"
model = "ft:gpt-4o-mini-2024-07-18:mesop:small-prompt:A1472X3c"
client = OpenAI(
api_key=getenv("OPENAI_API_KEY"),
)
Expand Down

0 comments on commit 40a1629

Please sign in to comment.