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

Add support for multiple languages #6

Open
potomak opened this issue May 5, 2024 · 0 comments
Open

Add support for multiple languages #6

potomak opened this issue May 5, 2024 · 0 comments

Comments

@potomak
Copy link
Member

potomak commented May 5, 2024

https://www.kooslooijesteijn.net/blog/multilingual-website-with-jekyll-collections

Example call to translate content:

curl https://api.openai.com/v1/chat/completions -v \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer TOKEN" \
  -d @translate_payload.json

translate_payload.json content:

  "model": "gpt-3.5-turbo",
  "messages": [
    {"role": "system", "content": "You're a professional translator from Italian to English."},
    {"role": "user", "content": "CONTENT"}
  ]
}
potomak added a commit that referenced this issue May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant