{"id":151097,"date":"2023-09-11T16:23:51","date_gmt":"2023-09-11T07:23:51","guid":{"rendered":"https:\/\/support.questetra.com\/?p=151097"},"modified":"2026-03-30T17:48:24","modified_gmt":"2026-03-30T08:48:24","slug":"azure-openai-service-chat-interact-with-parameters","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/azure-openai-service-chat-interact-with-parameters\/","title":{"rendered":"Azure OpenAI Service #Chat: Interact with Parameters"},"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>Azure OpenAI Service #Chat: Interact with Parameters<\/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\/azure-openai-service-chat-interact-with-parameters\/\">Azure OpenAI Service #Chat: \u30d1\u30e9\u30e1\u30fc\u30bf\u4ed8\u304d\u5bfe\u8a71<\/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)\">Communicates with Azure OpenAI Service API (ChatGPT running on Microsoft infrastructure). Supports the assignment of advanced parameters. Specifically, sampling temperature, upper % sampling, recurrence prohibition, frequency prohibition and Logit bias can be set.<\/p>\n\n\n\n<figure class=\"wp-block-image alignright has-custom-border is-style-default\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA+tJREFUWEfF\nl2toVEcUx\/\/nPja7e3U3cU1IzbbGNtE8kDYaUBS0BdsUKZaKX2xtae0HtZ8qKEk\/FAQVNyqkoPgC\nhbbSlra0H1pQWmgUxUKxLlqS+Ky2Jj4wyTZpNnuz2XtHZta7u9lXrhq482XZO+ec+Z05j5khODzI\n9vrbznvlmGc1iF5hQBMB1QCVJfVZhAG3CAiDsU7DE\/sB25pH7dieHGBrV6Uiya2M2EYAbjtGAejE\n6FDCNNqxp\/FeMZ2iAFJb10YC7QVIs7lwlhiLMrAtZqjxUCH9ggDyJ5cPgLFNT7ZwlhbRQWNX3Uf5\nbOUFkNt6vgKwdkoWTxv52gjVv51tMwdgSj3PWS13JyYAJGMuHZxizyeYYzA3ZeZEGmBrV6Us0\/Un\nTzi72CxqGKzGqo4UgNJ6uYMR+9iumaeRI0afJdrrNnMbSQDeZHRtwG6dr2vy450mH7yqhP90A7N8\nCn7\/J4bdpwfQO5Sww6Yb7miANysBILd2rQNJXxbTXDN\/OrYsC8AlEwKajCqfkiMeG2e4N5LAgXMR\ndJwdLA7CzHeN9sbjSYC27qMArS+k8UGzH7tXVqDMI+PvwXGUKISAV8aZm6OY5pLQHHRDldPpxEF2\n\/NaP9lN8UwsNdswINXwotKS27gsEasonuvx5L3a2lGPxcx4xbQGoEuFq\/xgIBIkgQvFqrQaF\/wFw\n6e4YVn1+u2BIGFjYDDUssHZgMH2wpDE2LCrF9tfKMcMrpz5aADwEkZgBiQh+tyRyYGHQDZMBQ7qB\nCk3B9YE4Nv98HyevRPP4xiJGqGHGI4Aeli0xd6YLP74XxLxyF8YSTBj2qIQh3cSv16KIxk3UznRh\nyezkznCAF2eV4HyvjqBfhSwBs0tVnL01ipcP\/5s3DkaongoCrH3Jh\/1vVkKRgIt3x+BVCSNxEzUB\nFyqnK+Bx\/uN2DMvmeMGtcIAFVW6E7+i4MTCO1+dpIk\/6hhN4\/9s76LyRezpnAHTnhOCN+mk4svoZ\nlHok\/NQzAsYgjPLYLqxy488+XcyVyBJeCKj45uIwrjyIC8\/XzPehrtwlvObf3vqiF1f741m7kBGC\nQkl4Yv2zWFGjCQ+tYcWag3BvV9RqmFOmpnKAl6k19ARDx5lBfPrLg5wQZCdh3jIM+hXsbKlAy1wN\n4yYTZRju00WyZS5k5YCVhBf6dLFj3\/81jH3nIgXqMKMM7TQiboWXZENFifhdWu0RmZ4wGa71x3H6\n5iiqy1R8d+l\/HA8PFW9CfDazET1uK57c+qQSE1sxF3f2MOIETh\/HyZbs5IXkUdgcvZJZqePopTQF\n4eS13IJw9GGSqmQnn2YT2oljj9NJm9rTCTwE9PPIMMF3rVkAAAAASUVORK5CYII=\n\" alt=\"Auto Step icon\" class=\"has-border-color has-ast-global-color-4-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: #aaa;\">AuthzConfU1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">U1: 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: #aaa;\">StrConfU2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">U2: Resource Name<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: #aaa;\">StrConfU3<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">U3: Deply Id<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: #aaa;\">StrConfU4<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">U4: API Version (default &#8220;2023-05-15&#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: #aaa;\">StrConfA0<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">A0: Responder Role (SYSTEM Role)<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: #aaa;\">StrConfA1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">A1: 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: #aaa;\">StrConfA2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">A2: Set Parameters (Temp Top_P P-penalty F-penalty) in 4 lines<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: #aaa;\">StrConfA3<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">A3: Set LogitBias (TokenID and Bias value pairs) for each line<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: #aaa;\">StrConfA4<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">A4: Number of Responses (default 1)<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: #aaa;\">StrConfA5<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">A5: Limit of Response Tokens (default 2048)<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: #aaa;\">StrConfA6<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">A6: Set Stop Words (eg &#8220;.&#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: #aaa;\">StrConfB1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">B1: Set FieldNames that store COMPLETION for each lines (update)<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: #aaa;\">SelectConfB2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">B2: STRING Data item to store Response JSON (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfC1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C1: NUMERIC Data item to store PROMPT Tokens (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfC2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C2: NUMERIC Data item to store COMPLETION Tokens (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfC3<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C3: NUMERIC Data item to store 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: 3)\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;AuthzConfU1&quot; );  \/\/\/ REQUIRED\n  engine.log( &quot; AutomatedTask Config: Authz Setting: &quot; + strAuthzSetting );\n\/*\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 );\n*\/\nconst strResourceName = configs.get( &quot;StrConfU2&quot; );\nconst strDeployId     = configs.get( &quot;StrConfU3&quot; );\nconst strAPIVersion   = configs.get( &quot;StrConfU4&quot; ) !== &quot;&quot; ?        \/\/ NotRequired\n                        configs.get( &quot;StrConfU4&quot; ) : &quot;2023-05-15&quot;; \/\/ (default)\n\nconst strSystemRole   = configs.get      ( &quot;StrConfA0&quot; );    \/\/ NotRequired\n\/*\nconst strLogPro1      = configs.get      ( &quot;StrConfPro1&quot; );  \/\/ NotRequired\nconst strLogCom1      = configs.get      ( &quot;StrConfCom1&quot; );  \/\/ NotRequired\nconst strLogPro2      = configs.get      ( &quot;StrConfPro2&quot; );  \/\/ NotRequired\nconst strLogCom2      = configs.get      ( &quot;StrConfCom2&quot; );  \/\/ NotRequired\nconst strLogPro3      = configs.get      ( &quot;StrConfPro3&quot; );  \/\/ NotRequired\nconst strLogCom3      = configs.get      ( &quot;StrConfCom3&quot; );  \/\/ NotRequired\n*\/\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 NOT be empty \\n&quot; );\n  }\n\nconst strParams       = configs.get      ( &quot;StrConfA2&quot; );    \/\/ NotRequired\nconst arrParams       = strParams !== &quot;&quot; ? strParams.split(&quot;\\n&quot;) : null;\nconst numTemperature  = isNaN(parseFloat(arrParams?.[0])) ? 1 : parseFloat( arrParams[0] );\nconst numTopP         = isNaN(parseFloat(arrParams?.[1])) ? 1 : parseFloat( arrParams[1] );\nconst numPresPenalty  = isNaN(parseFloat(arrParams?.[2])) ? 0 : parseFloat( arrParams[2] );\nconst numFreqPenalty  = isNaN(parseFloat(arrParams?.[3])) ? 0 : parseFloat( arrParams[3] );\n\/\/ const jsonLogitBias   = arrParams?.[4] ? JSON.stringify( arrParams[4] ) : null;\n  \/\/ Number(undefined)     \/\/ NaN\n  \/\/ Number(null)          \/\/ 0 \u2606\n  \/\/ Number(&#39;100a&#39;)        \/\/ NaN\n  \/\/ parseFloat(undefined) \/\/ NaN\n  \/\/ parseFloat(null)      \/\/ NaN\n\nconst strBias         = configs.get      ( &quot;StrConfA3&quot; );    \/\/ NotRequired\nconst arrBias         = strBias !== &quot;&quot; ? strBias.split(&quot;\\n&quot;) : null;\nconst strChoises      = configs.get      ( &quot;StrConfA4&quot; );    \/\/ NotRequired\nconst numChoises      = isNaN(parseInt(strChoises,10)) ? 1 : parseInt(strChoises,10);\nconst strLimit        = configs.get      ( &quot;StrConfA5&quot; );    \/\/ NotRequired\nconst numLimit        = isNaN(parseInt(strLimit,10)) ? 2048 : parseInt(strLimit,10);\nconst strStops        = configs.get      ( &quot;StrConfA6&quot; );    \/\/ NotRequired\nconst arrStops        = strStops !== &quot;&quot; ? strStops.split(&quot;\\n&quot;) : null;\nconst strQfields      = configs.get      ( &quot;StrConfB1&quot; );    \/\/ NotRequired\nconst arrQfields      = strQfields !== &quot;&quot; ? strQfields.split(&quot;\\n&quot;) : null;\n\nconst strPocketResponseJson     = configs.getObject( &quot;SelectConfB2&quot; ); \/\/ NotRequired\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    if ( strSystemRole !==&quot;&quot; ) {\n      let objSystemRole = {};\n          objSystemRole.role = &quot;system&quot;;\n          objSystemRole.content = strSystemRole;\n      strJson.messages.push ( objSystemRole );\n    }\n\/*\n    if ( strLogPro1 !==&quot;&quot; && strLogCom1 !==&quot;&quot; ) {\n      let objLogPro = {};\n          objLogPro.role = &quot;user&quot;;\n          objLogPro.content = strLogPro1;\n      strJson.messages.push ( objLogPro );\n      let objLogCom = {};\n          objLogCom.role = &quot;assistant&quot;;\n          objLogCom.content = strLogCom1;\n      strJson.messages.push ( objLogCom );\n    }\n    if ( strLogPro2 !==&quot;&quot; && strLogCom2 !==&quot;&quot; ) {\n      let objLogPro = {};\n          objLogPro.role = &quot;user&quot;;\n          objLogPro.content = strLogPro2;\n      strJson.messages.push ( objLogPro );\n      let objLogCom = {};\n          objLogCom.role = &quot;assistant&quot;;\n          objLogCom.content = strLogCom2;\n      strJson.messages.push ( objLogCom );\n    }\n    if ( strLogPro3 !==&quot;&quot; && strLogCom3 !==&quot;&quot; ) {\n      let objLogPro = {};\n          objLogPro.role = &quot;user&quot;;\n          objLogPro.content = strLogPro3;\n      strJson.messages.push ( objLogPro );\n      let objLogCom = {};\n          objLogCom.role = &quot;assistant&quot;;\n          objLogCom.content = strLogCom3;\n      strJson.messages.push ( objLogCom );\n    }\n*\/\n\n    let objNewMsg = {};\n        objNewMsg.role = &quot;user&quot;;\n        objNewMsg.content = strPrompt;\n    strJson.messages.push ( objNewMsg );\n\n    if ( arrParams?.[0] !==&quot;&quot; ) {\n      strJson.temperature       = numTemperature;\n    }\n    if ( arrParams?.[1] !==&quot;&quot; ) {\n      strJson.top_p             = numTopP;\n    }\n    if ( arrParams?.[2] !==&quot;&quot; ) {\n      strJson.presence_penalty  = numPresPenalty;\n    }\n    if ( arrParams?.[3] !==&quot;&quot; ) {\n      strJson.frequency_penalty = numFreqPenalty;\n    }\n\n    strJson.n          = numChoises;\n    strJson.max_tokens = numLimit;\n    strJson.user       = &quot;m&quot; + processInstance.getProcessModelInfoId().toString();\n    if ( arrStops !== null ){\n      strJson.stop = [];\n      for ( let i = 0; i &lt; arrStops.length; i++ ){\n        if ( arrStops[i] === &quot;- - -&quot; ){\n          strJson.stop.push ( &quot;\\n&quot; );\n        }else{\n          strJson.stop.push ( arrStops[i] );\n        }\n      }\n    }\n    if ( arrBias !== null ){\n      strJson.logit_bias = {};\n      for ( let i = 0; i &lt; arrBias.length; i++ ){\n        let arrNumParts = arrBias[i].match( \/-?\\d+\/g ); \/\/ numbers (including with minus signs)\n        if (arrNumParts.length &gt;= 2) {\n          strJson.logit_bias[arrNumParts[0]] = Number(arrNumParts[1]);\n        }\n      }\n    }\n\n\/\/engine.log( JSON.stringify( strJson ) ); \/\/ debug\n\n\n\/\/\/ prepare request1\nlet request1Uri = &quot;https:\/\/&quot; + strResourceName + &quot;.openai.azure.com\/openai\/deployments\/&quot; + strDeployId + &quot;\/chat\/completions?api-version=&quot; + strAPIVersion;\nconst apiKey = httpClient.getOAuth2Token(strAuthzSetting);\n\nlet request1 = httpClient.begin(); \/\/ HttpRequestWrapper\n    request1 = request1.header(&quot;api-key&quot;, apiKey);\n    request1 = request1.body( JSON.stringify( strJson ), &quot;application\/json&quot; );\n\n\/\/\/ try request1\nconst response1     = request1.post( request1Uri ); \/\/ HttpResponseWrapper\n  engine.log( &quot; AutomatedTask ApiRequest1 Start: &quot; + request1Uri );\nconst response1Code = response1.getStatusCode() + &quot;&quot;; \/\/ JavaNum to string\nconst response1Body = response1.getResponseAsString();\n  engine.log( &quot; AutomatedTask ApiResponse1 Status: &quot; + response1Code );\n\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\n\/\/\/ parse response1\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( strPocketResponseJson !== null ){\n  engine.setData( strPocketResponseJson, response1Body );\n}\n\nif ( arrQfields !== null ) {\n  for ( let i = 0; i &lt; response1Obj.choices.length; i++ ) {\n    if( engine.findDataDefinitionByVarName ( arrQfields?.[i] ) !== null ){\n      engine.setDataByVarName( arrQfields[i], \n                    response1Obj.choices[i].message.content ?? &quot;&quot;\n                  );\n    }\n  }\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\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<\/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--60)\"><span style=\"text-decoration: underline;\">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\/183Z9mcekrrwkDEhYxavSajVADsFH0KBr\/view?usp=drivesdk\" target=\"_blank\">AzureOpenAIService-chat-interact-with-parameters.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2023-08-25 (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> is available only in <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--60)\"><span style=\"text-decoration: underline;\">Notes<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For more information on the Azure OpenAI Service, <a rel=\"noopener\" href=\"https:\/\/azure.microsoft.com\/en-us\/products\/ai-services\/openai-service\" target=\"_blank\">check this page<\/a>. ChatGPT and other services provided by OpenAI are available on the Microsoft infrastructure.<\/li>\n\n\n\n<li>Uses &#8216;API Key Authentication&#8217;. (Works with Questetra BPM Suite Ver. 15.1 or later)<\/li>\n\n\n\n<li>Refer to the Notes and Appendix of <a rel=\"noopener\" href=\"https:\/\/support.questetra.com\/en\/addons\/openai-chat-interact-with-parameters-202303\/\" target=\"_blank\">OpenAI #Chat: Interact with Parameters<\/a>, where the configuration items are almost identical.<\/li>\n\n\n\n<li>The model (AI engine) is specified when deploying the model on the Azure OpenAI Service side, so it is not a configuration item.<\/li>\n\n\n\n<li>Set the resource name and deployment ID determined when creating the resource and deploying the model on the Azure OpenAI Service side.<\/li>\n\n\n\n<li>The default API version is 2023-05-15 only (as of 1 Sep 2023).<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">Capture<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"630\" data-attachment-id=\"151138\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/azure-openai-service-chat-interact-with-parameters\/attachment\/azure-openai-service-chat-interact-with-parameters-capture-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/azure-openai-service-chat-interact-with-parameters-capture-en.jpg?fit=897%2C744&amp;ssl=1\" data-orig-size=\"897,744\" 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=\"azure-openai-service-chat-interact-with-parameters-capture-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/azure-openai-service-chat-interact-with-parameters-capture-en.jpg?fit=760%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/azure-openai-service-chat-interact-with-parameters-capture-en-760x630.jpg?resize=760%2C630&#038;ssl=1\" alt=\"\" class=\"wp-image-151138\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/azure-openai-service-chat-interact-with-parameters-capture-en.jpg?resize=760%2C630&amp;ssl=1 760w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/azure-openai-service-chat-interact-with-parameters-capture-en.jpg?resize=380%2C315&amp;ssl=1 380w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/azure-openai-service-chat-interact-with-parameters-capture-en.jpg?resize=768%2C637&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/azure-openai-service-chat-interact-with-parameters-capture-en.jpg?w=897&amp;ssl=1 897w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">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=\"gFIx86ubT0\"><a href=\"https:\/\/support.questetra.com\/en\/templates\/decision-making-request-20230906\/\">Approval Process, Azure OpenAI Service Creation Assistance<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Approval Process, Azure OpenAI Service Creation Assistance&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/templates\/decision-making-request-20230906\/embed\/#?secret=pL5Yxf2vnn#?secret=gFIx86ubT0\" data-secret=\"gFIx86ubT0\" 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=\"R0voZAFbko\"><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; visibility: hidden;\" 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=Zs9wL18jsJ#?secret=R0voZAFbko\" data-secret=\"R0voZAFbko\" 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=\"0oobPfpBNe\"><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-openai-chatgpt-chat\/\">OpenAI ChatGPT: Chat<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;OpenAI ChatGPT: Chat&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/bpmn-icons\/service-task-openai-chatgpt-chat\/embed\/#?secret=a2nPemGxwD#?secret=0oobPfpBNe\" data-secret=\"0oobPfpBNe\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Communicates with Azure OpenAI Service API (ChatGPT running on Microsoft infrastructure). Supports the assignment of advanced parameters. Specifically, sampling temperature, upper % sampling, recurrence prohibition, frequency prohibition and Logit bias can be set.<\/p>\n","protected":false},"author":9,"featured_media":151144,"comment_status":"closed","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":[3429],"class_list":["post-151097","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-openai-api"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-en.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-en.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-en.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/09\/eyecatch-azure-openai-service-chat-interact-with-parameters-en.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"Tsuyoshi Kusaka","author_link":"https:\/\/support.questetra.com\/en\/author\/kusaka0211\/"},"uagb_comment_info":3,"uagb_excerpt":"Communicates with Azure OpenAI Service API (ChatGPT running on Microsoft infrastructure). Supports the assignment of advanced parameters. Specifically, sampling temperature, upper % sampling, recurrence prohibition, frequency prohibition and Logit bias can be set.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-Dj3","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":150661,"url":"https:\/\/support.questetra.com\/ja\/addons\/azure-openai-service-chat-interact-with-parameters\/","url_meta":{"origin":151097,"position":0},"title":"Azure OpenAI Service #Chat: \u30d1\u30e9\u30e1\u30fc\u30bf\u4ed8\u304d\u5bfe\u8a71","author":"Tsuyoshi Kusaka","date":"2023-09-01","format":false,"excerpt":"Azure OpenAI Service \u306e API (Microsoft \u57fa\u76e4\u4e0a\u3067\u52d5\u304f ChatGPT) \u3068\u901a\u4fe1\u3057\u307e\u3059\u3002\u9ad8\u5ea6\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u4ed8\u4e0e\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":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/08\/eyecatch-azure-openai-service-chat-interact-with-parameters-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/eyecatch-azure-openai-service-chat-interact-with-parameters-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/eyecatch-azure-openai-service-chat-interact-with-parameters-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/eyecatch-azure-openai-service-chat-interact-with-parameters-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":181945,"url":"https:\/\/support.questetra.com\/ja\/addons\/azure-openai-service-chat-interact-with-parameters-2026\/","url_meta":{"origin":151097,"position":1},"title":"Azure OpenAI Service #Chat: \u30d1\u30e9\u30e1\u30fc\u30bf\u4ed8\u304d\u5bfe\u8a71","author":"Tsuyoshi Kusaka","date":"2026-03-30","format":false,"excerpt":"Azure OpenAI Service \u306e API (Microsoft \u57fa\u76e4\u4e0a\u3067\u52d5\u304f ChatGPT) \u3068\u901a\u4fe1\u3057\u307e\u3059\u3002\u9ad8\u5ea6\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u4ed8\u4e0e\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":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/eyecatch-azure-openai-service-chat-interact-with-parameters-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\/08\/eyecatch-azure-openai-service-chat-interact-with-parameters-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/eyecatch-azure-openai-service-chat-interact-with-parameters-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/eyecatch-azure-openai-service-chat-interact-with-parameters-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/eyecatch-azure-openai-service-chat-interact-with-parameters-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":150991,"url":"https:\/\/support.questetra.com\/ja\/templates\/decision-making-request-20230906\/","url_meta":{"origin":151097,"position":2},"title":"\u7a1f\u8b70\u30a2\u30d7\u30ea, Azure OpenAI Service \u4f5c\u6210\u30a2\u30b7\u30b9\u30c8","author":"Tsuyoshi Kusaka","date":"2023-09-06","format":false,"excerpt":"\u8d77\u6848\u5185\u5bb9\u3092AI\u304c\u30ec\u30d3\u30e5\u30fc\u3057\u3066\u304f\u308c\u308b\u7a1f\u8b70\u30a2\u30d7\u30ea\u3067\u3059\u3002 \u8d77\u6848\u8005\u306f\u3001AI\u30ec\u30d3\u30e5\u30fc\u7d50\u679c\u3092\u5143\u306b\u8d77\u6848\u5185\u5bb9\u3092\u30d6\u30e9\u30c3\u30b7\u30e5\u30a2\u30c3\u30d7\u3067\u304d\u307e\u3059\u3002","rel":"","context":"In &quot;\u30ef\u30fc\u30af\u30d5\u30ed\u30fc \u30a2\u30d7\u30ea&quot;","block_context":{"text":"\u30ef\u30fc\u30af\u30d5\u30ed\u30fc \u30a2\u30d7\u30ea","link":"https:\/\/support.questetra.com\/ja\/category\/templates\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/decision-making-request-20230906-capture-ja.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/decision-making-request-20230906-capture-ja.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/decision-making-request-20230906-capture-ja.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/decision-making-request-20230906-capture-ja.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/09\/decision-making-request-20230906-capture-ja.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":146199,"url":"https:\/\/support.questetra.com\/ja\/templates\/slogan-create-20230517\/","url_meta":{"origin":151097,"position":3},"title":"\u30ad\u30e3\u30c3\u30c1\u30b3\u30d4\u30fc\u4f5c\u6210\u30a2\u30d7\u30ea, ChatGPT\u9023\u643a","author":"Tsuyoshi Kusaka","date":"2023-05-17","format":false,"excerpt":"ChatGPT\u304c\u88fd\u54c1\u30ad\u30e3\u30c3\u30c1\u30b3\u30d4\u30fc\u6848\u3092\u63d0\u6848\u3057\u3066\u304f\u308c\u308b\u30a2\u30d7\u30ea\u3067\u3059\u3002 \u6bce\u671d7\u6642\u306b\u81ea\u52d5\u958b\u59cb\u3055\u308c\u30015\u3064\u306e\u30b3\u30d4\u30fc\u6848\u304c\u793e\u5185SNS\uff08\u30aa\u30fc\u30d7\u30f3\u30c1\u30e3\u30c3\u30c8\uff09\u306b\u6295\u7a3f\u3055\u308c\u307e\u3059\u3002 \u307e\u305f\u30bf\u30b9\u30af\u5165\u529b\u753b\u9762\u3088\u308a\u3001\u63d0\u6848\u6761\u4ef6\u3092\u5909\u66f4\u3057\u3066\u518d\u63d0\u6848\u3092\u4f9d\u983c\u3067\u304d\u307e\u3059\u3002","rel":"","context":"In &quot;\u30ef\u30fc\u30af\u30d5\u30ed\u30fc \u30a2\u30d7\u30ea&quot;","block_context":{"text":"\u30ef\u30fc\u30af\u30d5\u30ed\u30fc \u30a2\u30d7\u30ea","link":"https:\/\/support.questetra.com\/ja\/category\/templates\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/05\/slogan-create-20230517-capture-ja.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/05\/slogan-create-20230517-capture-ja.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/05\/slogan-create-20230517-capture-ja.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/05\/slogan-create-20230517-capture-ja.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/05\/slogan-create-20230517-capture-ja.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":143914,"url":"https:\/\/support.questetra.com\/ja\/addons\/openai-chat-interact-with-parameters-202303\/","url_meta":{"origin":151097,"position":4},"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":[]},{"id":143859,"url":"https:\/\/support.questetra.com\/ja\/addons\/openai-chat-start-202303\/","url_meta":{"origin":151097,"position":5},"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":[]}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/151097","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=151097"}],"version-history":[{"count":8,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/151097\/revisions"}],"predecessor-version":[{"id":181962,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/151097\/revisions\/181962"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/151144"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=151097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=151097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=151097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}