🎯 feat(config): Custom Endpoint Request Headers (#1588)

This commit is contained in:
Danny Avila 2024-01-18 20:11:42 -05:00 committed by GitHub
parent ab3339210a
commit 7e2e19a134
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 1 deletions

View file

@ -253,6 +253,21 @@ endpoints:
- **Description**: Excludes specified [default parameters](#default-parameters). Useful for APIs that do not accept or recognize certain parameters.
- **Example**: `dropParams: ["stop", "user", "frequency_penalty", "presence_penalty"]`
- **Note**: For a list of default parameters sent with every request, see the ["Default Parameters"](#default-parameters) Section below.
### **headers**:
> Adds additional headers to requests. Can reference an environment variable
- Type: Object/Dictionary
- **Description**: The `headers` object specifies custom headers for requests. Useful for authentication and setting content types.
- **Example**:
- **Note**: Supports dynamic environment variable values, which use the format: `"${VARIABLE_NAME}"`
```yaml
headers:
x-api-key: "${ENVIRONMENT_VARIABLE}"
Content-Type: "application/json"
```
## Additional Notes
- Ensure that all URLs and keys are correctly specified to avoid connectivity issues.