feat:完成ai网关搭建
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
{
|
||||
//多租户,支持多库,DbConnOptions会自动创建到默认租户,支持配置文件方式+数据库方式,AbpDefaultTenantStoreOptions
|
||||
// "Tenants": [
|
||||
// {
|
||||
// "Id": "33333333-3d72-4339-9adc-845151f8ada0",
|
||||
// "Name": "Mes@MySql",
|
||||
// "ConnectionStrings": {
|
||||
// "Default": "DataSource=mes-dev.db"
|
||||
// },
|
||||
// "IsActive": false
|
||||
// }
|
||||
// ],
|
||||
|
||||
// "Tenants": [
|
||||
// {
|
||||
// "Id": "33333333-3d72-4339-9adc-845151f8ada0",
|
||||
// "Name": "Mes@MySql",
|
||||
// "ConnectionStrings": {
|
||||
// "Default": "DataSource=mes-dev.db"
|
||||
// },
|
||||
// "IsActive": false
|
||||
// }
|
||||
// ],
|
||||
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
//"Default": "Information",
|
||||
@@ -27,36 +27,39 @@
|
||||
"Settings": {
|
||||
"Test": "hello"
|
||||
},
|
||||
|
||||
//数据库类型列表
|
||||
"DbList": [ "Sqlite", "Mysql", "Sqlserver", "Oracle", "PostgreSQL" ],
|
||||
|
||||
"DbConnOptions": {
|
||||
"Url": "DataSource=yi-abp-dev.db",
|
||||
"DbType": "Sqlite",
|
||||
"EnabledReadWrite": false,
|
||||
"EnabledCodeFirst": true,
|
||||
"EnabledSqlLog": true,
|
||||
"EnabledDbSeed": true,
|
||||
"EnableUnderLine": false, // 启用驼峰转下划线
|
||||
//SAAS多租户
|
||||
"EnabledSaasMultiTenancy": true
|
||||
//读写分离地址
|
||||
//"ReadUrl": [
|
||||
// "DataSource=[xxxx]", //Sqlite
|
||||
// "server=[xxxx];port=3306;database=[xxxx];user id=[xxxx];password=[xxxx]", //Mysql
|
||||
// "Data Source=[xxxx];Initial Catalog=[xxxx];User ID=[xxxx];password=[xxxx]" //Sqlserver
|
||||
// "HOST=[xxxx];PORT=5432;DATABASE=[xxxx];USERID=[xxxx];PASSWORD=[xxxx]" //PostgreSQL
|
||||
//]
|
||||
},
|
||||
|
||||
"DbList": [
|
||||
"Sqlite",
|
||||
"Mysql",
|
||||
"Sqlserver",
|
||||
"Oracle",
|
||||
"PostgreSQL"
|
||||
],
|
||||
"DbConnOptions": {
|
||||
"Url": "DataSource=yi-abp-dev.db",
|
||||
"DbType": "Sqlite",
|
||||
"EnabledReadWrite": false,
|
||||
"EnabledCodeFirst": true,
|
||||
"EnabledSqlLog": true,
|
||||
"EnabledDbSeed": true,
|
||||
"EnableUnderLine": false,
|
||||
// 启用驼峰转下划线
|
||||
//SAAS多租户
|
||||
"EnabledSaasMultiTenancy": true
|
||||
//读写分离地址
|
||||
//"ReadUrl": [
|
||||
// "DataSource=[xxxx]", //Sqlite
|
||||
// "server=[xxxx];port=3306;database=[xxxx];user id=[xxxx];password=[xxxx]", //Mysql
|
||||
// "Data Source=[xxxx];Initial Catalog=[xxxx];User ID=[xxxx];password=[xxxx]" //Sqlserver
|
||||
// "HOST=[xxxx];PORT=5432;DATABASE=[xxxx];USERID=[xxxx];PASSWORD=[xxxx]" //PostgreSQL
|
||||
//]
|
||||
},
|
||||
//redis使用freeesql参数在“FreeSqlOptions的ConnectionStringBuilder中”
|
||||
"Redis": {
|
||||
"IsEnabled": false,
|
||||
"Configuration": "127.0.0.1:6379,password=123,defaultDatabase=13",
|
||||
"JobDb": 13
|
||||
},
|
||||
|
||||
//鉴权
|
||||
"JwtOptions": {
|
||||
"Issuer": "https://ccnetcore.com",
|
||||
@@ -71,8 +74,6 @@
|
||||
"SecurityKey": "67ij4o6jo4i5j6io45j6i4j74p5k6i54ojoi5t9g8ergoj34ofgkrtbmreog894jbioemgropihj48rj4io5juopjgior",
|
||||
"ExpiresMinuteTime": 172800
|
||||
},
|
||||
|
||||
|
||||
//第三方登录
|
||||
"OAuth": {
|
||||
//QQ
|
||||
@@ -88,26 +89,33 @@
|
||||
"RedirectUri": ""
|
||||
}
|
||||
},
|
||||
|
||||
//Rbac模块
|
||||
"RbacOptions": {
|
||||
//超级管理员种子数据默认密码
|
||||
"AdminPassword": "123456",
|
||||
|
||||
//是否开启验证码验证
|
||||
"EnableCaptcha": true,
|
||||
|
||||
//是否开启注册功能
|
||||
"EnableRegister": false,
|
||||
|
||||
//开启定时数据库备份
|
||||
"EnableDataBaseBackup": false
|
||||
},
|
||||
|
||||
//语义内核
|
||||
"SemanticKernel": {
|
||||
"ModelIds": ["gpt-4o"],
|
||||
"ModelIds": [
|
||||
"gpt-4o"
|
||||
],
|
||||
"Endpoint": "https://xxx.com/v1",
|
||||
"ApiKey": "sk-xxxxxx"
|
||||
},
|
||||
//AI网关
|
||||
"AiGateWay": {
|
||||
"Chats": {
|
||||
"AzureChatService": {
|
||||
"ModelIds": ["gpt-4o"],
|
||||
"Endpoint": "https://xxx.com/v1",
|
||||
"ApiKey": "sk-xxxxxx"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user