{"id":143855,"date":"2023-03-20T11:30:54","date_gmt":"2023-03-20T02:30:54","guid":{"rendered":"https:\/\/support.questetra.com\/?p=143855"},"modified":"2023-08-10T13:24:25","modified_gmt":"2023-08-10T04:24:25","slug":"openai-chat-start-202303","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/openai-chat-start-202303\/","title":{"rendered":"OpenAI #Chat: Start"},"content":{"rendered":"\n<h4 class=\"wp-block-heading has-background\" style=\"background-color:#ffccff;margin-top:var(--wp--preset--spacing--30);margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--20);padding-bottom:0;padding-left:var(--wp--preset--spacing--20)\"><strong>OpenAI: Chat, Start<\/strong><\/h4>\n\n\n\n<p class=\"has-text-align-right has-background has-small-font-size mt-0 pt-0 wp-block-paragraph\" style=\"background-color:#ffccff;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--30);padding-bottom:0;padding-left:var(--wp--preset--spacing--30)\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/openai-chat-start-202303\/\">OpenAI: Chat, \u958b\u59cb<\/a><\/p>\n\n\n\n<p class=\"has-background mt-0 pt-0 wp-block-paragraph\" style=\"background-color:#fff0ff;margin-top:0;margin-right:0;margin-bottom:var(--wp--preset--spacing--60);margin-left:0;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--40)\">Starts a conversation with the OpenAI API (ChatGPT). The MODEL used is &#8220;gpt-4&#8221; by default (configurable). A response (COMPLETION) to an instruction question (PROMPT) is automatically obtained.<\/p>\n\n\n\n<figure class=\"wp-block-image alignright has-custom-border is-style-default\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABclJREFUWEfN\nV3tQlFUU\/12esiCwrCIhKugiL0VAUASc8pEZmI2K5Wu3MRtDK5Wm0RlndAEbK2VEa\/JRYQZkmu9I\na\/KVvBQfgOKKDwhwDUXQXcTl4QK3uRd2XdhvgbFm6P73fd895\/zOOb\/z+Aj6+JDe2nfflSBqtMds\n2kYngdBgAJ4AEbfLUzWAClBSSCzIWTstDle9n9DQG909Ahj4vcJNZ4k1hCCOAv16qbSJUuy0bsUX\nNYsTH3Qn0y0AcZoijhKaDBD73hg2vUO1hJJP1PLEnebkzQJwSk\/YTkCXvZjhzlIUZEedLGG5kC5B\nAE7p6\/cSkPn\/hXG9Dgr6U50saUFXnSYAevL8Q78IvD08EEMdnKFra8PVx\/exveQ8TleV9ohXKBKd\nALTnHDuENDlY2yI1ag4mu0tR3ViPwkdVcLLphzEuL8ECBPv+ugoLQnC59m9kqkrwVNcsCIhQLDPm\nhAEAZ7sVLTVHuM1h0ZB7j8WxSiU+vnicG3AXOWJj6HTEDPGFFbEwGNQ8a0Tq7Uv4tOiMAAiqtW4h\nUn11GAA4pylSQLCqqwTzfIV\/BN6RjsWDxnrEnNzDja8KiMJyvwkQ29ohr7oSm4vPIae6AjOG+GF1\n4MvwdpRge8kFbCg6LVAc2KqRJ8azDxwAbzIi+qhrnU9198bG0NcgdZSAgCC9tABppQXYFBaNQBc3\nXFdXcwMs\/+yuSqvBrboa+DgNRGpULBysbfBeziFcrr3XCQQBmuwaiIQ1Kw5AnJGwiFKabnxLr2Sw\nvSMOlhdj3vAxOFKpRO7DSiiCpmDPnSvYVHwOMmkIlvuGw8d5IOp1zZwLG4rO8Kgt9RmPFGU2tilz\nTaJACJGpFyVkcADOaYpUELxrfEsRPBVLfcZh18183HpSi+SwaA7gYo0KH\/lH4PNrf0IuHYtgiTuO\nq25y4rH3YQM8cE9bx58XjgjG7tuXsPHqWaE07NbIE5e0A0hfXwAQ1t8N59AUGaT9JVicfQDeTgMM\nABgP4nzD0UYp7jyphcRWBArwUmTEYxGJD4iCZ38xmltbOFChCAC0UCNLCtEDePx8sLRjODpVzlk+\n+bdvOcv1EWAA5NIQbC7O4gYZSTeFvY5Yz9G4oXnIOZFfo8JnodMR6zkKRytvYFneEaFqUGtkSS4d\nABTMiU7nqwlvcsOrL55AU2sLtoW\/wWufNZ7ZnqOw8sIvyHpQzmXWjpmEt7wCOYDIQcNwuEKJ+PxM\n7J+0AEESd3yQdwynqu6YgNDIEolZAMxI8rgY3K6rwcoLmfCwd8K6oCnwd3ZFbZMWcXlHOgGY6xXI\nQbEKYSc882usDIhEfMBEfHMrX5AHRgDWm6SAKdkVORtzvUajol6NFGUOL0OWY9YD2PlSmQt\/sSuv\nEK3uGQdlDGDRiGAkhrzKU2VKRGqcAlMS6nng5+SKhlYdj4Cyo+5ZjndGzMJ0j5G4+1SD8w\/vImLQ\nMJMIbBk3g6dr7ZXfsbesqEsKjEkoUIZ6AF4OLliSc5BHgnlqY2GFR81aWBNL\/FhWiC3KHKwKiOQk\nXGGUgqTC09gyPgZVDfWYeeoH09lA8bwMhRoRA8D6\/\/wRQUguzsJWZQ5CB3jwEnuiaza02A0h0xA9\nxBd3n6qx8Nw+ZLw8D4NFjtxbdo\/xR4iAnRqRuVbMDH4XNQe2llZQFJzEz+XXuGJWeuuCJhsickJ1\nE+sK\/uBlu3tiLFxsRXw+sE7ZtQ0zeZNWzJuRmWHEiMTY72xrx\/PNmoubqD8fxXpO6HeBHRGzMHOo\nH5KvZyPlerZA7Xe8ol2GEXvd3Thmnq0JfIW3WXsrGzja2PLxe6C8GBllhZygS0aGYYLrUORWV0KW\ntd\/sPgCYGccMRHcLibE7UYM8kRQyjU9Ey449oLFFh19VJYZdwZz7ZhcSvUBPK5mxYjYxR4vd8Kyt\nFWful3XjdbtUjyvZcxB9uJS+SCTMs82853qZ\/++PiR5hn\/6aGYe2z35Oe8rvv\/3+D7A\/zj\/ftsWS\nAAAAAElFTkSuQmCC\n\" alt=\"Auto Step icon\" class=\"has-border-color has-ast-global-color-6-border-color\" style=\"border-width:0.5em\"\/><\/figure>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Configs for this Auto Step<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"0 0 -0.7em 0\">\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\">AuthzConfU<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">U: Select HTTP_Authz Setting (Secret API Key as &#8220;Fixed Value&#8221;)<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\">StrConfM<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">M: Set MODEL Name (default &#8220;gpt-4&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\">StrConfA1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">A1: Set Request Message PROMPT<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\">SelectConfB1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">B1: Select STRING that stores Response COMPLETION (update)<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\">SelectConfC1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C1: Select NUMERIC that stores PROMPT Tokens (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\">SelectConfC2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C2: Select NUMERIC that stores COMPLETION Tokens (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\">SelectConfC3<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C3: Select NUMERIC that stores Total Tokens (update)<\/dd>\n\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Script (click to open)<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ GraalJS Script (engine type: 2)\n\n\/\/\/\/\/\/\/\/ START &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\nmain();\nfunction main(){ \n\n\/\/\/\/\/\/ == Config Retrieving \/ \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 ==\nconst strAuthzSetting   = configs.get( &quot;AuthzConfU&quot; );       \/\/\/ REQUIRED\n  engine.log( &quot; AutomatedTask Config: Authz Setting: &quot; + strAuthzSetting );\nconst strModel          = configs.get( &quot;StrConfM&quot; ) !== &quot;&quot; ? \/\/ NotRequired\n                          configs.get( &quot;StrConfM&quot; ) : &quot;gpt-4&quot;; \/\/ (default)\n  engine.log( &quot; AutomatedTask Config: OpenAI Model: &quot; + strModel );\nconst strPrompt         = configs.get( &quot;StrConfA1&quot; );        \/\/\/ REQUIRED\n  if( strPrompt       === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {A1: Prompt} must be non-empty \\n&quot; );\n  }\nconst strPocketCompletion       = configs.getObject( &quot;SelectConfB1&quot; ); \/\/\/ REQUIRED\nconst numPocketPromptTokens     = configs.getObject( &quot;SelectConfC1&quot; ); \/\/ NotRequired\nconst numPocketCompletionTokens = configs.getObject( &quot;SelectConfC2&quot; ); \/\/ NotRequired\nconst numPocketTotalTokens      = configs.getObject( &quot;SelectConfC3&quot; ); \/\/ NotRequired\n\n\n\/\/\/\/\/\/ == Data Retrieving \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 ==\n\/\/ (Nothing. Retrieved via Expression Language in Config Retrieving)\n\n\n\/\/\/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\n\n\/\/\/\/ OpenAI API &gt; Documentation &gt; API REFERENCE &gt; CHAT\n\/\/\/\/ https:\/\/platform.openai.com\/docs\/api-reference\/chat\n\n\/\/\/ prepare json\nlet strJson = {};\n    strJson.model = strModel;\n    strJson.messages = [];\n    strJson.messages[0] = {};\n    strJson.messages[0].role = &quot;user&quot;;\n    strJson.messages[0].content = strPrompt;\n\n\/\/\/ prepare request1\nlet request1Uri = &quot;https:\/\/api.openai.com\/v1\/chat\/completions&quot;;\nlet request1 = httpClient.begin(); \/\/ HttpRequestWrapper\n    request1 = request1.authSetting( strAuthzSetting ); \/\/ with &quot;Authorization: Bearer XX&quot;\n    request1 = request1.body( JSON.stringify( strJson ), &quot;application\/json&quot; );\n\n\/\/\/ try request1\nconst response1     = request1.post( request1Uri ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest1 Start: &quot; + request1Uri );\nconst response1Code = response1.getStatusCode() + &quot;&quot;; \/\/ JavaNum to string\nconst response1Body = response1.getResponseAsString();\nengine.log( &quot; AutomatedTask ApiResponse1 Status: &quot; + response1Code );\nif( response1Code !== &quot;200&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    response1Code + &quot;\\n&quot; + response1Body + &quot;\\n&quot; );\n}\n\n\/\/\/ parse response1\nengine.log( response1Body ); \/\/ debug\n\/* engine.log( response1Body ); \/\/ debug\n{\n  &quot;id&quot;:&quot;chatcmpl-6pttfxxxxxmzOKmyyyyy9A2gIwwww&quot;,\n  &quot;object&quot;:&quot;chat.completion&quot;,\n  &quot;created&quot;:1677827615,\n  &quot;model&quot;:&quot;gpt-3.5-turbo-0301&quot;,\n  &quot;usage&quot;:{\n    &quot;prompt_tokens&quot;:41,\n    &quot;completion_tokens&quot;:424,\n    &quot;total_tokens&quot;:465\n  },\n  &quot;choices&quot;:[{\n    &quot;message&quot;:{\n      &quot;role&quot;:&quot;assistant&quot;,\n      &quot;content&quot;:&quot;\\n\\n\u4eac\u90fd\u306e\u826f\u3055\u306f\u3001\u6570\u3048\u5207\u308c\u306a\u3044\u307b\u3069\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u304c...\\n\\n\u6e05\u6c34\u5bfa\u306f...&quot;\n    },\n    &quot;finish_reason&quot;:null,\n    &quot;index&quot;:0\n  }]\n}\n*\/\nconst response1Obj = JSON.parse( response1Body );\n\n\n\/\/\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\n\nif( strPocketCompletion !== null ){\n  engine.setData( strPocketCompletion,\n                  response1Obj.choices[0].message.content ?? &quot;&quot;\n                );\n}\nif( numPocketPromptTokens !== null ){\n  engine.setData( numPocketPromptTokens, new java.math.BigDecimal(\n                  response1Obj.usage.prompt_tokens ?? 0\n                ));\n}\nif( numPocketCompletionTokens !== null ){\n  engine.setData( numPocketCompletionTokens, new java.math.BigDecimal(\n                  response1Obj.usage.completion_tokens ?? 0\n                ));\n}\nif( numPocketTotalTokens !== null ){\n  engine.setData( numPocketTotalTokens, new java.math.BigDecimal(\n                  response1Obj.usage.total_tokens ?? 0\n                ));\n}\n\/\/ &quot;??&quot;: Nullish coalescing operator (ES11)\n\/\/ https:\/\/developer.mozilla.org\/docs\/Web\/JavaScript\/Reference\/Operators\/Nullish_coalescing\n\n} \/\/\/\/\/\/\/\/ END &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\n\/*\nNotes:\n- If you place this &quot;Automated Step&quot; in the Workflow diagram,\n    - the request will be automatically sent every time the process token arrives.\n    - A request is automatically sent to the OpenAI API server. (REST API)\n    - The response from the OpenAI API server is automatically parsed.\n    - You can incorporate &quot;AI assistance&quot; into your business processes.\n- About &quot;OpenAI API&quot;\n    - https:\/\/platform.openai.com\/docs\/introduction\/overview\n    - The OpenAI API can be applied to virtually any task that involves understanding or generating natural language or code.\n    - For example, if you give the API the prompt, &quot;Write a tagline for an ice cream shop&quot;,\n        - it will return a completion like &quot;We serve up smiles with every scoop!&quot;\n- API key is required to use the OpenAI API.\n    - Obtain the API key to be used in advance.\n- Configurable MODEL names:\n    - https:\/\/platform.openai.com\/docs\/models\/model-endpoint-compatibility\n\nAPPENDIX\n- Header for developers belonging to multiple organizations is not supported (as of 202303)\n    - `OpenAI-Organization`\n- Requests with context are not supported.\n    - You cannot set the flow of conversation in this auto-step.\n    - Use &quot;OpenAI: Chat, Interact with Parameters&quot; instead.\n        - https:\/\/support.questetra.com\/addons\/openai-chat-interact-with-parameters-2023\/\n- To activate the Workflow App including this &quot;Add-on automated Step&quot;, &quot;HTTP Authorization Setting&quot; is required.\n    - Set &quot;Secret API Key&quot; as communication token. (Token Fixed Value)\n- Older versions\n    - https:\/\/support.questetra.com\/addons\/openai-chat-start-2023\/\n        - Compatible.\n        - Overwrite to update &quot;Add-on Service Task&quot;.\n        - No need for re-release of &quot;Workflow App&quot;\n- If access to the latest Model is restricted, 404 error (&quot;That model does not exist&quot;)\n    - Even if the latest Model is released by OpenAI, it is not open to all developers.\n- An error may occur depending on the timing.\n    - 429 error (&quot;Too Many Requests&quot;)\n    - Timeout script error &#39;java.util.concurrent.TimeoutException&#39;\n\nNotes-ja:\n- \u3053\u306e\uff3b\u81ea\u52d5\u5de5\u7a0b\uff3d\u3092\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u56f3\u306b\u914d\u7f6e\u3059\u308c\u3070\u3001\u6848\u4ef6\u304c\u5230\u9054\u3059\u308b\u5ea6\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u81ea\u52d5\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002\n    - OpenAI API \u30b5\u30fc\u30d0\u306b\u5bfe\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u81ea\u52d5\u9001\u51fa\u3055\u308c\u307e\u3059\u3002\uff08REST API\u901a\u4fe1\uff09\n    - OpenAI API \u30b5\u30fc\u30d0\u304b\u3089\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u81ea\u52d5\u89e3\u6790\u3055\u308c\u307e\u3059\u3002\n    - &quot;AI \u306b\u3088\u308b\u652f\u63f4&quot; \u3092\u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u306b\u7d44\u307f\u8fbc\u3080\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002\n- &quot;OpenAI API&quot; \u3068\u306f\n    - https:\/\/platform.openai.com\/docs\/introduction\/overview\n    - OpenAI API \u306f\u3001\u81ea\u7136\u8a00\u8a9e\u3084\u30b3\u30fc\u30c9\u3092\u7406\u89e3\u3057\u3001\u81ea\u7136\u8a00\u8a9e\u3084\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u3042\u3089\u3086\u308b\u4ed5\u4e8b\u306b\u9069\u7528\u53ef\u80fd\u3067\u3059\u3002\n    - \u305f\u3068\u3048\u3070\u3001\u300c\u30a2\u30a4\u30b9\u30af\u30ea\u30fc\u30e0\u5c4b\u306e\u30ad\u30e3\u30c3\u30c1\u30d5\u30ec\u30fc\u30ba\u3092\u66f8\u3044\u3066\u300d\u3068\u3044\u3046\u30d7\u30ed\u30f3\u30d7\u30c8\uff08Prompt\uff09\u3092\u4e0e\u3048\u308b\u3068\u3001\n        - \u300c\u5168\u3066\u306e\u30b9\u30af\u30fc\u30d7\u3092\u7b11\u9854\u3067\uff01\u300d\u3068\u3044\u3063\u305f\u5fdc\u7b54\uff08Completion\uff09\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002 (\u2190Questetra\u793e\u306b\u3088\u308b\u610f\u8a33)\n- OpenAI API \u306e\u5229\u7528\u306b\u306f API key \u304c\u5fc5\u8981\u3067\u3059\u3002\n    - \u3042\u3089\u304b\u3058\u3081 &quot;Secret API Key&quot; \u3092\u53d6\u5f97\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\n- \u8a2d\u5b9a\u53ef\u80fd\u306a\u30e2\u30c7\u30eb\u540d:\n    - https:\/\/platform.openai.com\/docs\/models\/model-endpoint-compatibility\n\n\nAPPENDIX-ja\n- Older versions\n    - https:\/\/support.questetra.com\/ja\/addons\/openai-chat-start-2023\/\n        - \u4e92\u63db\u6027\u3042\u308a\u307e\u3059\u3002\n        - \uff3b\u30a2\u30c9\u30aa\u30f3\u30b5\u30fc\u30d3\u30b9\u30bf\u30b9\u30af\uff3d\u3092\u4e0a\u66f8\u304d\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n        - \uff3b\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30a2\u30d7\u30ea\uff3d\u306e\u66f4\u65b0\u30ea\u30ea\u30fc\u30b9\u306f\u3001\u5fc5\u305a\u3057\u3082\u5fc5\u8981\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\n            - \u30e2\u30c7\u30eb\uff08AI\u30a8\u30f3\u30b8\u30f3\uff09\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\n- \u8907\u6570\u7d44\u7e54\u306b\u6240\u5c5e\u3059\u308b\u958b\u767a\u8005\u5411\u3051\u306e\u30d8\u30c3\u30c0\u306b\u306f\u672a\u5bfe\u5fdc\u3067\u3059\uff08202303\u6642\u70b9\uff09\n    - `OpenAI-Organization`\n- \u6587\u8108\u3092\u4f7f\u3063\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u306f\u672a\u5bfe\u5fdc\u3067\u3059\u3002\n    - \u3053\u306e\u81ea\u52d5\u5de5\u7a0b\u3067\u306f\u4f1a\u8a71\u306e\u6d41\u308c\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\n    - \u4ee3\u308f\u308a\u306b\u300eOpenAI: Chat, \u30d1\u30e9\u30e1\u30fc\u30bf\u4ed8\u304d\u5bfe\u8a71\u300f\u3092\u5229\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n        - https:\/\/support.questetra.com\/ja\/addons\/openai-chat-interact-with-parameters-2023\/\n- \u3053\u306e\uff3b\u30a2\u30c9\u30aa\u30f3\u81ea\u52d5\u5de5\u7a0b\uff3d\u3092\u542b\u3080\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30a2\u30d7\u30ea\u3092\u904b\u7528\u3059\u308b\u306b\u306f\uff3bHTTP \u8a8d\u8a3c\u8a2d\u5b9a\uff3d\u304c\u5fc5\u8981\u3067\u3059\u3002\n    - &quot;Secret API Key&quot; \u3092\u901a\u4fe1\u30c8\u30fc\u30af\u30f3\u3068\u3057\u3066\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002\uff3b\u30c8\u30fc\u30af\u30f3\u76f4\u63a5\u6307\u5b9a\uff3d\n- \u6700\u65b0Model\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u5236\u9650\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001404\u30a8\u30e9\u30fc\uff08&quot;That model does not exist&quot;\uff09\n    - \u6700\u65b0Model\u304c\u767a\u8868\u3055\u308c\u3066\u3082\u3001\u5168\u3066\u306e\u958b\u767a\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u8a33\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\n    - eg. `GPT-4 is currently in a limited beta and only accessible to those who have been granted access.`\n    - eg. `AutomatedTask UnexpectedResponseError: 404 { &quot;error&quot;: { &quot;message&quot;: &quot;That model does not exist&quot;,`\n- \u30bf\u30a4\u30df\u30f3\u30b0\u306b\u3088\u3063\u3066\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\n    - 429\u30a8\u30e9\u30fc\uff08&quot;Too Many Requests&quot;\uff09\n    - Timeout \u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30e9\u30fc &#39;java.util.concurrent.TimeoutException&#39;\n*\/\n\n<\/code><\/pre><\/div>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>Download<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1FHKJ3Nr6LyFwEam0q2QSUTnnvJdlHDUN\/view?usp=drivesdk\" target=\"_blank\">openai-chat-start-202303.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2023-03-19 (C) Questetra, Inc. (MIT License)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/drive.google.com\/file\/d\/1gUSIuhIrI2hdagkZ0aC0SC2hWcC7H6WL\/view?usp=sharing\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1gUSIuhIrI2hdagkZ0aC0SC2hWcC7H6WL\/view?usp=sharing\">openai-chat-start-202308.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2023-08-08 (C) Questetra, Inc. (MIT License)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"has-small-font-size\" style=\"text-align: right;\"><div style=\"display: inline-block; background: #FBE7DD; text-align: center;\">\n<span class=\"material-icons\">warning<\/span> Freely modifiable JavaScript (ECMAScript) code. No warranty of any kind.<br>\n(Installing <em><strong>Addon Auto-Steps<\/strong><\/em> are available only on the <em><strong><span style=\"color: #1970B9\">Professional<\/span><\/strong><\/em> edition.)\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>Notes<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you place this automated step in the Workflow diagram,\n<ul class=\"wp-block-list\">\n<li>the request will be automatically sent every time the process token arrives.<\/li>\n\n\n\n<li>A request is automatically sent to the OpenAI API server. (REST API)<\/li>\n\n\n\n<li>The response from the OpenAI API server is automatically parsed.<\/li>\n\n\n\n<li>You can incorporate AI assistance into your business processes.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>About OpenAI API\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/platform.openai.com\/docs\/introduction\/overview\" rel=\"nofollow\">https:\/\/platform.openai.com\/docs\/introduction\/overview<\/a><\/li>\n\n\n\n<li>The OpenAI API can be applied to virtually any task that involves understanding or generating natural language or code.<\/li>\n\n\n\n<li>For example, if you give the API the prompt, &#8220;Write a tagline for an ice cream shop&#8221;,\n<ul class=\"wp-block-list\">\n<li>it will return a completion like &#8220;We serve up smiles with every scoop!&#8221;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>API key is required to use the OpenAI API.\n<ul class=\"wp-block-list\">\n<li>Obtain the API key to be used in advance.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Configurable MODEL names:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/platform.openai.com\/docs\/models\/model-endpoint-compatibility\" rel=\"nofollow\">https:\/\/platform.openai.com\/docs\/models\/model-endpoint-compatibility<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>Capture<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?ssl=1\" target=\"_blank\" rel=\"noreferrer noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" data-attachment-id=\"143847\" data-permalink=\"https:\/\/support.questetra.com\/en\/templates\/meeting-report-process\/attachment\/openai-chat-start-202303-capture-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"openai-chat-start-202303-capture-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=1200%2C675&#038;ssl=1\" alt=\"Starts a conversation with the OpenAI API (ChatGPT). The MODEL used is &quot;gpt-4&quot; by default (configurable). A response (COMPLETION) to an instruction question (PROMPT) is automatically obtained.\" class=\"wp-image-143847\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border is-style-rounded is-style-rounded--1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"499\" height=\"630\" data-attachment-id=\"143853\" data-permalink=\"https:\/\/support.questetra.com\/en\/templates\/meeting-report-process\/attachment\/openai-chat-start-202303-config-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-config-en.png?fit=894%2C1129&amp;ssl=1\" data-orig-size=\"894,1129\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"openai-chat-start-202303-config-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-config-en.png?fit=499%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-config-en-499x630.png?resize=499%2C630&#038;ssl=1\" alt=\"\" class=\"has-border-color wp-image-143853\" style=\"border-color:#009900;border-width:3px;border-radius:9px\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-config-en.png?resize=499%2C630&amp;ssl=1 499w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-config-en.png?resize=249%2C315&amp;ssl=1 249w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-config-en.png?resize=768%2C970&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-config-en.png?w=894&amp;ssl=1 894w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span >Appendix<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Header for developers belonging to multiple organizations is not supported (as of 202303)\n<ul class=\"wp-block-list\">\n<li><code>OpenAI-Organization<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Requests with context are not supported.\n<ul class=\"wp-block-list\">\n<li>You cannot set the flow of conversation in this auto-step.<\/li>\n\n\n\n<li>Use &#8220;OpenAI: Chat, Interact with Parameters&#8221; instead.\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/addons\/openai-chat-interact-with-parameters-2023\/\">https:\/\/support.questetra.com\/addons\/openai-chat-interact-with-parameters-2023\/<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>To activate the Workflow App including this add-on automated Step, HTTP Authorization setting is required.\n<ul class=\"wp-block-list\">\n<li>Set the Secret API Key as the communication token. (Token Fixed Value)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Older versions\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/addons\/openai-chat-start-2023\/\">https:\/\/support.questetra.com\/addons\/openai-chat-start-2023\/<\/a>\n<ul class=\"wp-block-list\">\n<li>Compatible.<\/li>\n\n\n\n<li>Overwrite to update the Add-on Service Task.<\/li>\n\n\n\n<li>No need to re-release the Workflow App<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If access to the latest Model is restricted, 404 error (&#8220;That model does not exist&#8221;)\n<ul class=\"wp-block-list\">\n<li>Even if the latest Model is released by OpenAI, it is not open to all developers.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>An error may occur depending on the timing.\n<ul class=\"wp-block-list\">\n<li>429 error (&#8220;Too Many Requests&#8221;)<\/li>\n\n\n\n<li>Timeout script error &#8216;java.util.concurrent.TimeoutException&#8217;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>See also<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"Pl4cgXCdpt\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/openai-audio-transcribe-to-webvtt-2023\/\">OpenAI #Audio: Transcribe to WebVTT<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;OpenAI #Audio: Transcribe to WebVTT&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/addons\/openai-audio-transcribe-to-webvtt-2023\/embed\/#?secret=xv1m4mq93W#?secret=Pl4cgXCdpt\" data-secret=\"Pl4cgXCdpt\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"jU3nWsydXS\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/openai-chat-interact-with-parameters-202303\/\">OpenAI #Chat: Interact with Parameters<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;OpenAI #Chat: Interact with Parameters&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/addons\/openai-chat-interact-with-parameters-202303\/embed\/#?secret=MDoEo2dehL#?secret=jU3nWsydXS\" data-secret=\"jU3nWsydXS\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Starts a conversation with the OpenAI API (ChatGPT). The MODEL used is &#8220;gpt-4&#8221; by default (configurable). A response (COMPLETION) to an instruction question (PROMPT) is automatically obtained.<\/p>\n","protected":false},"author":2,"featured_media":143847,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[168],"tags":[365,3429],"class_list":["post-143855","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-easy-config-addon","tag-openai-api"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-en.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/en\/author\/imamuragenichi\/"},"uagb_comment_info":14,"uagb_excerpt":"Starts a conversation with the OpenAI API (ChatGPT). The MODEL used is \"gpt-4\" by default (configurable). A response (COMPLETION) to an instruction question (PROMPT) is automatically obtained.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-Bqf","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":143312,"url":"https:\/\/support.questetra.com\/en\/addons\/openai-chat-start-2023\/","url_meta":{"origin":143855,"position":0},"title":"OpenAI: Chat, Start","author":"IMAMURA, Genichi","date":"2023-03-03","format":false,"excerpt":"Starts a conversation with the OpenAI API (ChatGPT). The model ID used is \"gpt-3.5-turbo\". A response (COMPLETION) to an instruction question (PROMPT) is automatically obtained.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"OpenAI: Chat, Start","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":143859,"url":"https:\/\/support.questetra.com\/ja\/addons\/openai-chat-start-202303\/","url_meta":{"origin":143855,"position":1},"title":"OpenAI #Chat: \u958b\u59cb","author":"IMAMURA, Genichi","date":"2023-03-20","format":false,"excerpt":"OpenAI API (ChatGPT) \u3068\u306e\u4f1a\u8a71\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u4f7f\u7528\u3055\u308c\u308b MODEL \u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 \"gpt-4\" \u3067\u3059\uff08\u5909\u66f4\u53ef\u80fd\uff09\u3002\u6307\u793a\u6587\uff08PROMPT\uff09\u306b\u5bfe\u3059\u308b\u5fdc\u7b54\u6587\uff08COMPLETION\uff09\u3092\u81ea\u52d5\u7684\u306b\u53d6\u5f97\u3057\u307e\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-202303-capture-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":143316,"url":"https:\/\/support.questetra.com\/ja\/addons\/openai-chat-start-2023\/","url_meta":{"origin":143855,"position":2},"title":"OpenAI: Chat, \u958b\u59cb","author":"IMAMURA, Genichi","date":"2023-03-03","format":false,"excerpt":"OpenAI API (ChatGPT) \u3068\u306e\u4f1a\u8a71\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u4f7f\u7528\u3055\u308c\u308b\u30e2\u30c7\u30ebID\u306f \"gpt-3.5-turbo\" \u3067\u3059\u3002\u6307\u793a\u8cea\u554f\u6587\uff08PROMPT\uff09\u306b\u5bfe\u3059\u308b\u5fdc\u7b54\uff08COMPLETION\uff09\u304c\u81ea\u52d5\u53d6\u5f97\u3055\u308c\u307e\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"OpenAI: Chat, \u958b\u59cb","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-2023-capture-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-2023-capture-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-2023-capture-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-2023-capture-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-start-2023-capture-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":143909,"url":"https:\/\/support.questetra.com\/en\/addons\/openai-chat-interact-with-parameters-202303\/","url_meta":{"origin":143855,"position":3},"title":"OpenAI #Chat: Interact with Parameters","author":"IMAMURA, Genichi","date":"2023-03-20","format":false,"excerpt":"Communicates with OpenAI API (ChatGPT); the default MODEL is \"gpt-4\" (configurable). Supports almost all Chat features, such as re-asking based on histories and\/or parameters; sampling temperature-Top_P, Presence-Frequency penalty, Logit bias.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"OpenAI: Chat, Interact with Parameters","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-202303-capture-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-202303-capture-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-202303-capture-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-202303-capture-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-202303-capture-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":143460,"url":"https:\/\/support.questetra.com\/en\/addons\/openai-chat-interact-with-parameters-2023\/","url_meta":{"origin":143855,"position":4},"title":"OpenAI: Chat, Interact with Parameters","author":"IMAMURA, Genichi","date":"2023-03-08","format":false,"excerpt":"Communicates with OpenAI API (ChatGPT). Instructions with conversation history and\/or advanced parameters (PROMPT) are possible; Sampling temperature, Sampling Top_P, Presence penalty, Frequency penalty, Logit bias. Model ID used is \"gpt-3.5-turbo\".","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":143914,"url":"https:\/\/support.questetra.com\/ja\/addons\/openai-chat-interact-with-parameters-202303\/","url_meta":{"origin":143855,"position":5},"title":"OpenAI #Chat: \u30d1\u30e9\u30e1\u30fc\u30bf\u4ed8\u304d\u5bfe\u8a71","author":"IMAMURA, Genichi","date":"2023-03-20","format":false,"excerpt":"OpenAI API (ChatGPT) \u3068\u901a\u4fe1\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8 MODEL \u306f \"gpt-4\" \uff08\u5909\u66f4\u53ef\u80fd\uff09\u3067\u3059\u3002\u4f1a\u8a71\u5c65\u6b74\u3092\u3075\u307e\u3048\u305f\u518d\u8cea\u554f\u3084\u9ad8\u5ea6\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u4ed8\u4e0e\u306a\u3069\u3001\u307b\u307c\u5168\u3066\u306e Chat \u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u6e29\u5ea6\u3001\u4e0a\u4f4d\uff05\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u3001\u518d\u51fa\u73fe\u7981\u6b62\u5ea6\u3001\u983b\u51fa\u7981\u6b62\u5ea6\u3001Logit\u30d0\u30a4\u30a2\u30b9\u306a\u3069\u304c\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"OpenAI: Chat, \u30d1\u30e9\u30e1\u30fc\u30bf\u4ed8\u304d\u5bfe\u8a71","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-202303-capture-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-202303-capture-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-202303-capture-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-202303-capture-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-chat-interact-with-parameters-202303-capture-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/143855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=143855"}],"version-history":[{"count":7,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/143855\/revisions"}],"predecessor-version":[{"id":149349,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/143855\/revisions\/149349"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/143847"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=143855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=143855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=143855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}