[improvement](chat) Remove unnecessary pom imports, optimize code, and adapt the test project. (#485)

This commit is contained in:
lexluo09
2023-12-08 20:03:42 +08:00
committed by GitHub
parent abbe8c84a1
commit a5c32ac064
8 changed files with 359 additions and 17 deletions

View File

@@ -32,3 +32,36 @@ time:
mybatis:
mapper-locations=classpath:mappers/custom/*.xml,classpath*:/mappers/*.xml
#langchain4j config
langchain4j:
#1.chat-model
chat-model:
provider: open_ai
openai:
api-key: api_key
model-name: gpt-3.5-turbo
temperature: 0.0
timeout: PT60S
#2.embedding-model
embedding-model:
provider: in_memory
# embedding-model:
# hugging-face:
# access-token: hg_access_token
# model-id: sentence-transformers/all-MiniLM-L6-v2
# timeout: 1h
# embedding-model:
# provider: open_ai
# openai:
# api-key: api_key
# modelName: all-minilm-l6-v2.onnx
#langchain4j log
logging:
level:
dev.langchain4j: DEBUG
dev.ai4j.openai4j: DEBUG