Browse Source

feat: MindPilotUI

main
gjl 1 year ago
parent
commit
681e0a7d02
5 changed files with 11 additions and 11 deletions
  1. +2
    -2
      Frontend/src/renderer/src/views/conversationSummary.ts
  2. +2
    -2
      src/mindpilot/app/chat/chat.py
  3. +2
    -2
      src/mindpilot/app/configs/model_config.py
  4. +1
    -1
      src/mindpilot/app/configs/tool_config.py
  5. +4
    -4
      src/mindpilot/app/model_configs/model_config_api.py

+ 2
- 2
Frontend/src/renderer/src/views/conversationSummary.ts View File

@@ -21,8 +21,8 @@ export const conversationSummary = async (chatConversation: string) => {
agent_enable: false,
tool_config: [],
chat_model_config: {
api_key: "sk-cERDW9Fr2ujq8D2qYck9cpc9MtPytN26466bunfYXZVZWV7Y",
base_url: "https://api.chatanywhere.tech/v1/",
api_key: "",
base_url: "",
is_openai: true,
llm_model: {
"gpt-4o": {


+ 2
- 2
src/mindpilot/app/chat/chat.py View File

@@ -99,8 +99,8 @@ async def chat(
chat_model_config: dict = Body({}, description="LLM 模型配置", examples=[{
"platform": "OpenAI",
"is_openai": True,
"base_url": "https://api.chatanywhere.tech/v1/",
"api_key": "sk-cERDW9Fr2ujq8D2qYck9cpc9MtPytN26466bunfYXZVZWV7Y",
"base_url": "",
"api_key": "",
"llm_model": {
"gpt-4o-mini": {
"temperature": 0.8,


+ 2
- 2
src/mindpilot/app/configs/model_config.py View File

@@ -10,8 +10,8 @@ MODEL_CONFIG = {
# },
"platform": "OpenAI",
"is_openai": True,
"base_url": "https://api.chatanywhere.tech/v1/",
"api_key": "sk-cERDW9Fr2ujq8D2qYck9cpc9MtPytN26466bunfYXZVZWV7Y",
"base_url": "",
"api_key": "",
"llm_model": {
"gpt-4o-mini": {
"temperature": 0.8,


+ 1
- 1
src/mindpilot/app/configs/tool_config.py View File

@@ -20,7 +20,7 @@ TOOL_CONFIG = {
"bing": {
"result_len": 3,
"bing_search_url": "https://api.bing.microsoft.com/v7.0/search",
"bing_key": "0f42b09dce16474a81c01562ded071dc",
"bing_key": "",
},
},
"top_k": 10,


+ 4
- 4
src/mindpilot/app/model_configs/model_config_api.py View File

@@ -27,8 +27,8 @@ def create_table():
async def add_model_config(
config_name: str = Body(..., description="配置名称", examples=["gpt-4o-mini"]),
platform: str = Body("", description="模型平台", examples=["OpenAI"]),
base_url: str = Body("", examples=["https://api.chatanywhere.tech/v1/"]),
api_key: str = Body("", examples=["sk-cERDW9Fr2ujq8D2qYck9cpc9MtPytN26466bunfYXZVZWV7Y"]),
base_url: str = Body("", examples=[""]),
api_key: str = Body("", examples=[""]),
llm_model: dict = Body({}, description="LLM 模型配置", examples=[{
"model": "gpt-4o-mini",
"callbacks": True,
@@ -142,8 +142,8 @@ async def update_model_config(
config_id: int,
config_name: str = Body(..., description="配置名称", examples=["gpt-4o-mini"]),
platform: str = Body("", description="模型平台", examples=["OpenAI"]),
base_url: str = Body("", examples=["https://api.chatanywhere.tech/v1/"]),
api_key: str = Body("", examples=["sk-cERDW9Fr2ujq8D2qYck9cpc9MtPytN26466bunfYXZVZWV7Y"]),
base_url: str = Body("", examples=[""]),
api_key: str = Body("", examples=[""]),
llm_model: dict = Body({}, description="LLM 模型配置", examples=[{
"model": "gpt-4o-mini",
"callbacks": True,


Loading…
Cancel
Save