mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
chore: add back data-provider
This commit is contained in:
parent
488b373695
commit
77a76f8511
16 changed files with 1323 additions and 1 deletions
9
packages/data-provider/src/headers-helpers.ts
Normal file
9
packages/data-provider/src/headers-helpers.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import axios from 'axios';
|
||||
|
||||
export function setAcceptLanguageHeader(value: string): void {
|
||||
axios.defaults.headers.common['Accept-Language'] = value;
|
||||
}
|
||||
|
||||
export function setTokenHeader(token: string) {
|
||||
axios.defaults.headers.common['Authorization'] = 'Bearer ' + token;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue