mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-07 19:18:52 +01:00
🎯 feat(config): Custom Endpoint Request Headers (#1588)
This commit is contained in:
parent
ab3339210a
commit
7e2e19a134
4 changed files with 25 additions and 1 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue