(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] [LLMModel]
MODEL_NAME = gpt-3.5-turbo-16k MODEL_NAME = gpt-3.5-turbo
OPENAI_API_KEY = YOUR_API_KEY OPENAI_API_KEY = YOUR_API_KEY
OPENAI_API_BASE = YOUR_API_BASE OPENAI_API_BASE = http://YOUR_API_BASE
TEMPERATURE = 0.0 TEMPERATURE = 0.0

View File

@@ -45,14 +45,20 @@ mybatis:
corrector: corrector:
additional: additional:
information: true information: true
pyllm:
url: http://127.0.0.1:9092
llm: llm:
parser: parser:
url: http://127.0.0.1:9092 url: ${pyllm.url}
embedding: embedding:
url: http://127.0.0.1:9092 url: ${pyllm.url}
functionCall: functionCall:
url: http://127.0.0.1:9092 url: ${pyllm.url}
text2sql:
example:
num: 1
#langchain4j config #langchain4j config
s2: s2:
@@ -62,9 +68,10 @@ s2:
provider: open_ai provider: open_ai
openai: openai:
# Replace with your LLM configs # Replace with your LLM configs
base-url: http://YOUR_API_URL # Note: Below API key `demo` is provided by langchain4j community which limits 1000 tokens per request.
api-key: YOUR_API_KEY base-url: https://api.openai.com/v1
model-name: gpt-3.5-turbo-16k api-key: demo
model-name: gpt-3.5-turbo
temperature: 0.0 temperature: 0.0
timeout: PT60S timeout: PT60S
#2.embedding-model #2.embedding-model