Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubakimoto/08771698ed0f38f124ebecbd7aca8079 to your computer and use it in GitHub Desktop.
Save tsubakimoto/08771698ed0f38f124ebecbd7aca8079 to your computer and use it in GitHub Desktop.

GPT 3.5 turbo

Chat Completion API

REST API

https://learn.microsoft.com/en-us/azure/cognitive-services/openai/chatgpt-quickstart?tabs=command-line&pivots=rest-api

Role

https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/chatgpt?pivots=programming-language-chat-completions

{
  "messages": [
    {
      "content": "指定された記事の要約を行ってください。なお記事が英語で書かれている場合、要約は日本語で行ってください。要約は100字以内にしてください。",
      "role": "system"
    },
    {
      "content": "<put article url>",
      "role": "user"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment