Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use smaller prompt context for new ft model #867

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading