Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,9 @@ public String chatWithMetric(@RequestParam String userInput) {
SimpleMetricAdvisor metricAdvisor = new SimpleMetricAdvisor();
return this.deepSeekChatClient.prompt().advisors(metricAdvisor).user(userInput).call().content();
}

@GetMapping("/chat")
public String chatWithMemory(@RequestParam String userInput){
return this.deepSeekChatClient.prompt().user(userInput).call().content();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ management.endpoints.web.base-path=/actuator

# use deepseek model, prefix with spring.ai.deepseek
# because we do not use the OpenAI protocol
spring.ai.deepseek.api-key=${spring.ai.deepseek.api-key}
spring.ai.deepseek.base-url=https://api.deepseek.com
spring.ai.deepseek.api-key= sk-rdhgotnpjnwbkzdgelafcxgsdirjoetxicmcnyjyktrnvopk
spring.ai.deepseek.base-url=https://api.siliconflow.cn
spring.ai.deepseek.chat.completions-path=/v1/chat/completions
spring.ai.deepseek.chat.options.model=deepseek-chat
spring.ai.deepseek.chat.options.model=deepseek-ai/DeepSeek-R1-0528-Qwen3-8B
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ spring:
application:
name: mariadb-vector-store
datasource:
url: jdbc:mariadb://localhost:3308/vector_test
username: root
password: root
url: jdbc:mariadb://localhost:3316/mydb
username: gpz
password: 123456
driver-class-name: org.mariadb.jdbc.Driver
ai:
vectorstore:
Expand Down