Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
philffm committed Nov 18, 2024
1 parent 4219bb2 commit bb54f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ def translate_content(content, target_lang):
'messages': [
{'role': 'system', 'content': 'You are a professional SEO product translator for great product marketing. Keep the JSON structure, translate the content and IMPORTANT: for the local language section find inside information for the dedicated language / market. Make sure to include the aisummary part.'},
{'role': 'user', 'content': prompt}
],
'max_tokens': 2000
]
}

response = requests.post('https://api.openai.com/v1/chat/completions', headers=headers, json=data)
Expand Down
2 changes: 1 addition & 1 deletion translations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.7",
"version": "1.0.8",
"languages": [
{
"code": "en",
Expand Down

0 comments on commit bb54f72

Please sign in to comment.