mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-12 04:03:42 +08:00
rename Token to User, the chat history function is ready
This commit is contained in:
@@ -10,7 +10,7 @@ axios.defaults.headers.post['Content-Type'] = 'application/json'
|
||||
axios.interceptors.request.use(
|
||||
config => {
|
||||
// set token
|
||||
config.headers['ChatGPT-Token'] = getSessionId();
|
||||
config.headers['ChatGPT-TOKEN'] = getSessionId();
|
||||
return config
|
||||
}, error => {
|
||||
return Promise.reject(error)
|
||||
|
||||
Reference in New Issue
Block a user