mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
(improvement)(launcher)Use demo API key provided by langchain4j community as default config.
This commit is contained in:
@@ -23,7 +23,7 @@ LLM_PROVIDER_NAME = openai
|
||||
|
||||
|
||||
[LLMModel]
|
||||
MODEL_NAME = gpt-3.5-turbo-16k
|
||||
MODEL_NAME = gpt-3.5-turbo
|
||||
OPENAI_API_KEY = YOUR_API_KEY
|
||||
OPENAI_API_BASE = YOUR_API_BASE
|
||||
OPENAI_API_BASE = http://YOUR_API_BASE
|
||||
TEMPERATURE = 0.0
|
||||
|
||||
@@ -45,14 +45,20 @@ mybatis:
|
||||
corrector:
|
||||
additional:
|
||||
information: true
|
||||
pyllm:
|
||||
url: http://127.0.0.1:9092
|
||||
|
||||
llm:
|
||||
parser:
|
||||
url: http://127.0.0.1:9092
|
||||
url: ${pyllm.url}
|
||||
embedding:
|
||||
url: http://127.0.0.1:9092
|
||||
url: ${pyllm.url}
|
||||
functionCall:
|
||||
url: http://127.0.0.1:9092
|
||||
url: ${pyllm.url}
|
||||
|
||||
text2sql:
|
||||
example:
|
||||
num: 1
|
||||
|
||||
#langchain4j config
|
||||
s2:
|
||||
@@ -62,9 +68,10 @@ s2:
|
||||
provider: open_ai
|
||||
openai:
|
||||
# Replace with your LLM configs
|
||||
base-url: http://YOUR_API_URL
|
||||
api-key: YOUR_API_KEY
|
||||
model-name: gpt-3.5-turbo-16k
|
||||
# Note: Below API key `demo` is provided by langchain4j community which limits 1000 tokens per request.
|
||||
base-url: https://api.openai.com/v1
|
||||
api-key: demo
|
||||
model-name: gpt-3.5-turbo
|
||||
temperature: 0.0
|
||||
timeout: PT60S
|
||||
#2.embedding-model
|
||||
|
||||
Reference in New Issue
Block a user