(improvement)(launcher)Use demo API key provided by langchain4j community as default config.

This commit is contained in:
jerryjzhang
2024-05-17 15:51:16 +08:00
parent 7949efea75
commit edb60c3391
2 changed files with 15 additions and 8 deletions

View File

@@ -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

View File

@@ -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