mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-15 06:27:21 +00:00
(improvement)(config) Split the application-local.yml file based on functionality. (#1250)
This commit is contained in:
@@ -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平台接口文档'
|
||||
@@ -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
|
||||
40
launchers/standalone/src/main/resources/s2-config.yaml
Normal file
40
launchers/standalone/src/main/resources/s2-config.yaml
Normal 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
|
||||
@@ -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平台接口文档'
|
||||
@@ -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
|
||||
45
launchers/standalone/src/test/resources/s2-config.yaml
Normal file
45
launchers/standalone/src/test/resources/s2-config.yaml
Normal 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
|
||||
Reference in New Issue
Block a user