Skip to content

Commit b2c9026

Browse files
committed
Update
1 parent b7d527b commit b2c9026

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

make_accessible.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,12 @@ def main():
8686
prompt = generate_accessibility_prompt(swift_file, class_name, content)
8787
client = OpenAI(api_key=api_key)
8888
response = client.chat.completions.create(
89-
model="gpt-4-0125-preview",
89+
model="gpt-4.1",
9090
messages=[
9191
{"role": "system", "content": "You are a senior SwiftUI engineer and expert in iOS accessibility. First, list all missing or insufficient .accessibility* modifiers found in the provided SwiftUI view. Then, return the minimal patch-style instructions for adding the required .accessibility* modifiers, specifying the line number after which each modifier should be inserted and the code to insert. Do not output the full file, remove any code, or add commentary."},
9292
{"role": "user", "content": prompt}
9393
],
94-
temperature=0.2,
95-
max_tokens=3000
94+
temperature=0.2
9695
)
9796
generated_code = response.choices[0].message.content
9897
if not generated_code or is_potentially_injected(generated_code):

0 commit comments

Comments
 (0)