chore(config): 更新应用配置文件

- 移除 application.properties 中的 spring.profiles.active 配置
- 在 application.yml 中为 deepseek ai 服务添加 api-key 配置
- 保留 base-url 和 chat options 配置不变
This commit is contained in:
2026-01-16 00:32:43 +08:00
parent 727afba913
commit 767ba26e0f
7 changed files with 62 additions and 4 deletions

View File

@@ -1,8 +1,11 @@
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
// 创建 axios 实例
import type {AxiosInstance, AxiosRequestConfig, AxiosResponse} from "axios";
import axios from "axios";
const apiClient: AxiosInstance = axios.create({
baseURL: import.meta.env.VITE_API_BASE_URL || 'http://localhost:8080/api', // 使用环境变量或默认值
baseURL: import.meta.env.VITE_API_BASE_URL || 'http://127.0.0.1:8081/api', // 使用环境变量或默认值
timeout: 10000, // 请求超时时间
headers: {
'Content-Type': 'application/json',