{"title":"chatGPT API\u3092\u4f7f\u3063\u3066\u30ed\u30fc\u30ab\u30ebchat\u3000python","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F2023%2F03%2F14%2F194217\" title=\"chatGPT API\u3092\u4f7f\u3063\u3066\u30ed\u30fc\u30ab\u30ebchat\u3000python - shikaku&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"shikaku's blog","version":"1.0","height":"190","provider_name":"Hatena Blog","image_url":null,"categories":[],"type":"rich","url":"https://blog.systemjp.net/entry/2023/03/14/194217","published":"2023-03-14 19:42:17","blog_url":"https://blog.systemjp.net/","description":"\u30ed\u30fc\u30ab\u30eb\u3067\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u5b9f\u884c\u3067\u304d\u308b\u3057\u3002 ChatGPT Plus\u306b\u304a\u91d1\u6255\u3046\u3088\u308a\u5b89\u304f\u6e08\u307f\u305d\u3046 import openai def main(): openai.api_key = \"API CODE\u3092\u3053\u3053\u306b\u66f8\u3044\u3066\u306d\" amount_tokens = 0 chat = [] # ChatGPT\u3078\u306e\u8a2d\u5b9a\u3092\u66f8\u3044\u3066\u304a\u304f chat.append({\"role\": \"system\", \"content\": \"Please respond as a seasoned OpenAI programmer.\"}) chat.append({\"role\": \"system\", \"content\": \"Please\u2026","author_name":"shikaku","author_url":"https://blog.hatena.ne.jp/shikaku/","width":"100%"}