deprecated: true commonfields: id: OpenAI version: -1 name: OpenAI display: OpenAI (Deprecated) category: Utilities provider: OpenAI description: "Deprecated. Use `OpenAI GPT` instead." configuration: - display: OpenAI API URL(e.g. https://api.openai.com/) name: url defaultvalue: https://api.openai.com/ type: 0 required: true - display: API Key name: apikey type: 4 required: true - display: Trust any certificate (not secure) name: insecure type: 8 required: false - display: Use system proxy settings name: proxy type: 8 required: false script: script: '' type: python commands: - name: openai-completions arguments: - name: prompt required: true description: Instruction - name: model auto: PREDEFINED predefined: - text-davinci-003 - text-curie-001 - text-babbage-001 - text-ada-001 - code-davinci-002 - code-cushman-001 description: The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code defaultValue: text-davinci-003 type: textArea - name: temperature description: 'Controls randomness: Lowering results in less random completions.' defaultValue: "0.7" - name: max_tokens description: The maximum number of tokens to generate. defaultValue: "256" - name: top_p description: 'Controls Diversity via nucleus sampling: 0.5 means half of all likihood-weighted options are considered.' defaultValue: "1" - name: frequency_penalty description: How much to penalize new tokens based on their existing frequency in the text so far. Decreases the model's likelihood to repeat the same line verbatim. defaultValue: "0" - name: presence_penalty description: How much to penalize new tokens based on whether they appear in the text so far. Increases the model's likelihood to talk about new topics. defaultValue: "0" outputs: - contextPath: OpenAI.Completions.id description: Id of the returned completion. type: string - contextPath: OpenAI.Completions.model description: The model which will generate the completion. type: string - contextPath: OpenAI.Completions.text description: Completed text generated by OpenAI? type: string description: Enter an instruction and watch the API respond with a completion that attempts to match the context or pattern you provided. dockerimage: demisto/python3:3.10.12.63474 runonce: false subtype: python3 fromversion: 6.5.0 tests: - No tests (auto formatted)