mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
10 lines
274 B
TypeScript
10 lines
274 B
TypeScript
|
|
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;
|
||
|
|
}
|