cahaseler/OpenAI ChatGPT Action
Call the ChatGPT API with a simple prompt and response
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| apiKey | OpenAI API Key | yes | — |
| prompt | Prompt for the chat completion | yes | — |
| input | User input for the chat completion | yes | — |
| model | Model to use for the chat completion | yes | — |
| temperature | Temperature parameter for the chat completion (default: 1) | no | — |
| max_tokens | Max tokens parameter for the chat completion (default: 1000) | no | — |
Outputs
| name | description |
|---|---|
| completion | The message content of the chat completion |
| usage_prompt_tokens | The number of tokens used in the prompt |
| usage_completion_tokens | The number of tokens used in the completion |
| usage_total_tokens | The total number of tokens used |