(improvement)(config) Split the application-local.yml file based on functionality. (#1250)

This commit is contained in:
lexluo09
2024-06-27 16:56:16 +08:00
committed by GitHub
parent 8b88528938
commit bbd61ac937
23 changed files with 162 additions and 163 deletions

View File

@@ -28,52 +28,10 @@ spring:
mybatis:
mapper-locations=classpath:mappers/custom/*.xml,classpath*:/mappers/*.xml
authentication:
enable: true
exclude:
path: /api/auth/user/register,/api/auth/user/login
token:
http:
header:
key: Authorization
logging:
level:
dev.langchain4j: DEBUG
dev.ai4j.openai4j: DEBUG
s2:
pyllm:
url: http://127.0.0.1:9092
parser:
url: ${s2.pyllm.url}
strategy: ONE_PASS_SELF_CONSISTENCY
exemplar-recall:
number: 10
few-shot:
number: 5
self-consistency:
number: 1
multi-turn:
enable: false
corrector:
additional:
information: true
date: true
functionCall:
url: ${s2.pyllm.url}
embedding:
url: ${s2.pyllm.url}
persistent:
path: /tmp
demo:
names: S2VisitsDemo,S2ArtistDemo,SmallTalkDemo
enableLLM: true
# swagger配置
swagger:
title: 'SuperSonic平台接口文档'

View File

@@ -1,10 +1,11 @@
spring:
profiles:
active: local
active: prd
application:
name: chat
config:
import:
- classpath:llm-config.yaml
- classpath:s2-config.yaml
- classpath:langchain4j-config.yaml
mybatis:
mapper-locations=classpath:mappers/custom/*.xml,classpath*:/mappers/*.xml

View File

@@ -0,0 +1,40 @@
s2:
pyllm:
url: http://127.0.0.1:9092
parser:
url: ${s2.pyllm.url}
strategy: ONE_PASS_SELF_CONSISTENCY
exemplar-recall:
number: 10
few-shot:
number: 5
self-consistency:
number: 1
multi-turn:
enable: false
corrector:
additional:
information: true
date: true
functionCall:
url: ${s2.pyllm.url}
embedding:
url: ${s2.pyllm.url}
persistent:
path: /tmp
demo:
names: S2VisitsDemo,S2ArtistDemo,SmallTalkDemo
enableLLM: true
authentication:
enable: true
exclude:
path: /api/auth/user/register,/api/auth/user/login
token:
http:
header:
key: Authorization

View File

@@ -28,56 +28,10 @@ spring:
mybatis:
mapper-locations=classpath:mappers/custom/*.xml,classpath*:/mappers/*.xml
authentication:
enable: true
exclude:
path: /api/auth/user/register,/api/auth/user/login
token:
http:
header:
key: Authorization
logging:
level:
dev.langchain4j: DEBUG
dev.ai4j.openai4j: DEBUG
s2:
pyllm:
url: http://127.0.0.1:9092
parser:
url: ${s2.pyllm.url}
strategy: ONE_PASS_SELF_CONSISTENCY
exemplar-recall:
number: 10
few-shot:
number: 5
self-consistency:
number: 1
multi-turn:
enable: false
corrector:
additional:
information: true
date: true
functionCall:
url: ${s2.pyllm.url}
embedding:
url: ${s2.pyllm.url}
persistent:
path: /tmp
demo:
names: S2VisitsDemo,S2ArtistDemo
enableLLM: false
schema:
cache:
enable: false
# swagger配置
swagger:
title: 'SuperSonic平台接口文档'

View File

@@ -1,10 +1,11 @@
spring:
profiles:
active: local
active: prd
application:
name: chat
config:
import:
- classpath:llm-config.yaml
- classpath:s2-config.yaml
- classpath:langchain4j-config.yaml
mybatis:
mapper-locations=classpath:mappers/custom/*.xml,classpath*:/mappers/*.xml

View File

@@ -0,0 +1,45 @@
s2:
pyllm:
url: http://127.0.0.1:9092
parser:
url: ${s2.pyllm.url}
strategy: ONE_PASS_SELF_CONSISTENCY
exemplar-recall:
number: 10
few-shot:
number: 5
self-consistency:
number: 1
multi-turn:
enable: false
corrector:
additional:
information: true
date: true
functionCall:
url: ${s2.pyllm.url}
embedding:
url: ${s2.pyllm.url}
persistent:
path: /tmp
demo:
names: S2VisitsDemo,S2ArtistDemo
enableLLM: false
schema:
cache:
enable: false
authentication:
enable: true
exclude:
path: /api/auth/user/register,/api/auth/user/login
token:
http:
header:
key: Authorization