openai

DEBUG: set debugmode active via template, level: 10
DEBUG: version of plugin: 3.8.5
DEBUG: selected parser: twig351adj
DEBUG: load from template , urlparam4twig and use: q
DEBUG: set method via template , method: curlpost
DEBUG: set curloptions via template : {% if urlparam.q %}{% set qu = (urlparam.q | e) %}{% else %}{% set qu ="Suggest two names for a cat that is a superhero." %}{% endif %}CURLOPT_HTTPHEADER=Authorization: Bearer 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##Content-Type: application/json;CURLOPT_POSTFIELDS={"model": "text-davinci-003", "prompt": "{{qu...

DEBUG: set template via template : {% if urlparam.q %}{% set qu = (urlparam.q | e) %}{% else %}{% set qu ="Suggest two names for a cat that is a superhero." %}{% endif %} <form action="/openai/"> <input type="text" name=q value="{{qu| e}}" placeholder="Your Question for ChatGPT" size="100"> <input type="submit"&g...

DEBUG: set url via template : https://api.openai.com/v1/completions
DEBUG: active method: curlpost
DEBUG: dynamic url NOT allowed, therefore ignore pathparam / fileext. Switch on: See plugin-options
DEBUG: read urlparam4twig : q
DEBUG: JSON-url: https://api.openai.com/v1/completions
DEBUG: execute twig-code in curloptions: twig-template: {% if urlparam.q %}{% set qu = (urlparam.q | e) %}{% else %}{% set qu ="Suggest two names for a cat that is a superhero." %}{% endif %}CURLOPT_HTTPHEADER=Authorization: Bearer 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##Content-Type: application/json;CURLOPT_POSTFIELDS={"model": "text-davinci-003", "prompt...

DEBUG: curloptions after twig-execution: CURLOPT_HTTPHEADER=Authorization: Bearer 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##Content-Type: application/json;CURLOPT_POSTFIELDS={"model": "text-davinci-003", "prompt": "Suggest two names for a cat that is a superhero.", "temperature": 0, "max_tokens": 40}
DEBUG: curloptions really used: CURLOPT_HTTPHEADER=Authorization: Bearer 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##Content-Type: application/json;CURLOPT_POSTFIELDS={"model": "text-davinci-003", "prompt": "Suggest two names for a cat that is a superhero.", "temperature": 0, "max_tokens": 40}
DEBUG: Caching-Foldercheck: Cachefolders ok and available
DEBUG: use this cachefile: /www/htdocs/w01dd2db/test.json-content-importer.com/wp-content/cache/jsoncontentimporterpro/d271ffd497c25ce3b111349456aecb01-co064c2b7d206bded35ada5d9732ea3edf.cgi
DEBUG: Caching is NOT enabled
DEBUG: postbody IGNORED, this is used only if WP-POST is selected as method:
DEBUG: curlPOST: invalid curl-authmethod, check plugin-options: AUTH-TOKöEN:IPcdTpaqa4tkzC35mDuJxOVYitCt8qzY5I35p4gtZiU
DEBUG: curlPOST: timeout: 5
DEBUG: curlPOST: curl-option used from shortcode: CURLOPT_HTTPHEADER=Authorization: Bearer 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##Content-Type: application/json;CURLOPT_POSTFIELDS={"model": "text-davinci-003", "prompt": "Suggest two names for a cat that is a superhero.", "temperature": 0, "max_tokens": 40}
DEBUG: curlPOST: CURLOPT_HTTPHEADER=Authorization: Bearer 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##Content-Type: application/json
DEBUG: curlPOST: key: CURLOPT_HTTPHEADER (10023)- value: Authorization: Bearer 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##Content-Type: application/json
DEBUG: curlPOST: build array for CURLOPT_HTTPHEADER with Authorization: Bearer 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##Content-Type: application/json
DEBUG: curlPOST: array for CURLOPT_HTTPHEADER (10023): Array ( [0] => Authorization: Bearer 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 [1] => Content-Type: application/json )
DEBUG: curlPOST: curl_setopt CURLOPT_HTTPHEADER (10023) with value Array ( [0] => Authorization: Bearer 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 [1] => Content-Type: application/json )
DEBUG: curlPOST: setting of CURLOPT_HTTPHEADER (10023) successful
DEBUG: curlPOST: CURLOPT_POSTFIELDS={"model": "text-davinci-003", "prompt": "Suggest two names for a cat that is a superhero.", "temperature": 0, "max_tokens": 40}
DEBUG: curlPOST: key: CURLOPT_POSTFIELDS (10015)- value: {"model": "text-davinci-003", "prompt": "Suggest two names for a cat that is a superhero.", "temperature": 0, "max_tokens": 40}
DEBUG: curlPOST: input for CURLOPT_POSTFIELDS (10015): {"model": "text-davinci-003", "prompt": "Suggest two names for a cat that is a superhero.", "temperature": 0, "max_tokens": 40}
DEBUG: curlPOST, CURLOPT_POSTFIELDS (10015): valid JSON: {"model": "text-davinci-003", "prompt": "Suggest two names for a cat that is a superhero.", "temperature": 0, "max_tokens": 40}
DEBUG: curlPOST: curl_setopt CURLOPT_POSTFIELDS (10015) with value {"model": "text-davinci-003", "prompt": "Suggest two names for a cat that is a superhero.", "temperature": 0, "max_tokens": 40}
DEBUG: curlPOST: setting of valid JSON-feed at CURLOPT_POSTFIELDS (10015) successful
DEBUG: curlPOST: API-answer: { "error": { "message": "Incorrect API key provided: sk-s2h0B***************************************SXkf. You can find your API key at https://platform.openai.com/account/api-keys.", "type": "invalid_request_error", "param": null, "code": "invalid_api_key" }...

curlPOST: failed, http-code: 401