Skip to content

Commit

Permalink
feat(rag): 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx committed Feb 12, 2025
1 parent 8057f96 commit 897e399
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 46 deletions.
4 changes: 2 additions & 2 deletions deepseek-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.github.pig-mesh.ai</groupId>
<artifactId>deepseek4j</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
</parent>

<artifactId>deepseek-spring-boot-starter</artifactId>
Expand All @@ -30,7 +30,7 @@
<dependency>
<groupId>io.github.pig-mesh.ai</groupId>
<artifactId>deepseek4j-core</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down
2 changes: 1 addition & 1 deletion deepseek4j-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.github.pig-mesh.ai</groupId>
<artifactId>deepseek4j</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
</parent>
<artifactId>deepseek4j-core</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion deepseek4j-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<dependency>
<groupId>io.github.pig-mesh.ai</groupId>
<artifactId>deepseek-spring-boot-starter</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
</dependency>
</dependencies>

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ public Flux<ChatCompletionResponse> chat(String prompt) {
return deepSeekClient.chatFluxCompletion(prompt);
}

// 同步
@GetMapping(value = "/sync/chat")
public ChatCompletionResponse syncChat(String prompt) {
ChatCompletionRequest request = ChatCompletionRequest.builder()
// 根据渠道模型名称动态修改这个参数
.model(deepSeekProperties.getModel())
.addUserMessage(prompt).build();

return deepSeekClient.chatCompletion(request).execute();
}

@GetMapping(value = "/models", produces = MediaType.APPLICATION_JSON_VALUE)
public ModelsResponse models() {
return deepSeekClient.models();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ deepseek:
model: deepseek-r1:14b
api-key: ollama-local
log-level: info

embedding:
api-key: ollama-local
base-url: http://127.0.0.1:11434/v1
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>io.github.pig-mesh.ai</groupId>
<artifactId>deepseek4j</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
<packaging>pom</packaging>

<name>deepseek4j</name>
Expand Down

0 comments on commit 897e399

Please sign in to comment.