Skip to content

Commit

Permalink
refactor: axios timeout setting plus
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Nov 5, 2024
1 parent 0514dca commit 694d59a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import axios from 'axios';

export const llm_axiosInstance = axios.create({
baseURL: process.env.REACT_APP_LLM_SERVER_API_ADDRESS,
timeout: 20000,
timeout: 200000,
withCredentials: false,
});

export const server_axiosInstance = axios.create({
baseURL: process.env.REACT_APP_SPRING_SERVER_API_ADDRESS,
timeout: 20000,
timeout: 200000,
withCredentials: true,
});

0 comments on commit 694d59a

Please sign in to comment.