mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-02 20:58:12 +00:00
fix: auth key code
This commit is contained in:
@@ -26,3 +26,12 @@ export const axiosConfig = () => ({
|
||||
auth: process.env.OPENAI_BASE_URL_AUTH || ''
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* get error message
|
||||
*/
|
||||
export const getErrMessage = (err: any, defaultMsg = ''): string => {
|
||||
const msg = typeof err === 'string' ? err : err?.message || defaultMsg || '';
|
||||
msg && console.log('error =>', msg);
|
||||
return msg;
|
||||
};
|
||||
|
Reference in New Issue
Block a user