Skip to content

Commit 008e6c4

Browse files
committed
Improved var names in last example ↞ [auto-sync from https://github.com/KudoAI/ai-personas/tree/main/python]
1 parent 49bed43 commit 008e6c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ai-personas/docs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ from openai import OpenAI
154154

155155
client = OpenAI()
156156

157-
persona_prompt = ai_personas['Linux Terminal']['prompt']
158-
user_query = 'echo "UTC time: $(date -u +%H:%M:%S)"'
157+
shell_persona = ai_personas['Linux Terminal']['prompt']
158+
shell_cmd = 'echo "UTC time: $(date -u +%H:%M:%S)"'
159159

160160
response = client.chat.completions.create(
161161
model='gpt-5.4',
162162
messages=[
163-
{'role': 'system', 'content': persona_prompt},
164-
{'role': 'user', 'content': user_query}
163+
{'role': 'system', 'content': shell_persona},
164+
{'role': 'user', 'content': shell_cmd}
165165
]
166166
)
167167

0 commit comments

Comments
 (0)