Skip to content

Commit

Permalink
[feature][headless-chat]Introduce ChatApp to support more flexible ch…
Browse files Browse the repository at this point in the history
…at model config.#1739
  • Loading branch information
jerryjzhang committed Oct 12, 2024
1 parent 45da72e commit b20c625
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping({"/api/chat/model", "/openapi/chat/model"})
Expand Down Expand Up @@ -51,8 +51,8 @@ public List<ChatModel> getModelList() {
}

@RequestMapping("/getModelAppList")
public List<ChatApp> getModelAppList() {
return new ArrayList(ChatAppManager.getAllApps().values());
public Map<String, ChatApp> getChatAppList() {
return ChatAppManager.getAllApps();
}

@RequestMapping("/getModelParameters")
Expand Down

0 comments on commit b20c625

Please sign in to comment.