镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 06:26:47 +00:00
fix type hint
这个提交包含在:
@@ -6,7 +6,7 @@ from typing import List
|
|||||||
class ArgProperty(BaseModel): # PLUGIN_ARG_MENU
|
class ArgProperty(BaseModel): # PLUGIN_ARG_MENU
|
||||||
title: str = Field(description="The title", default="")
|
title: str = Field(description="The title", default="")
|
||||||
description: str = Field(description="The description", default="")
|
description: str = Field(description="The description", default="")
|
||||||
default_value: str|float = Field(description="The default value", default="")
|
default_value: str = Field(description="The default value", default="")
|
||||||
type: str = Field(description="The type", default="") # currently we support ['string', 'dropdown']
|
type: str = Field(description="The type", default="") # currently we support ['string', 'dropdown']
|
||||||
options: List[str] = Field(default=[], description="List of options available for the argument") # only used when type is 'dropdown'
|
options: List[str] = Field(default=[], description="List of options available for the argument") # only used when type is 'dropdown'
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ def ArgsGeneralWrapper(f):
|
|||||||
"""
|
"""
|
||||||
def decorated(request: gradio.Request, cookies:dict, max_length:int, llm_model:str,
|
def decorated(request: gradio.Request, cookies:dict, max_length:int, llm_model:str,
|
||||||
txt:str, txt2:str, top_p:float, temperature:float, chatbot:list,
|
txt:str, txt2:str, top_p:float, temperature:float, chatbot:list,
|
||||||
history:list, system_prompt:str, plugin_advanced_arg:str|dict, *args):
|
history:list, system_prompt:str, plugin_advanced_arg:dict, *args):
|
||||||
txt_passon = txt
|
txt_passon = txt
|
||||||
if txt == "" and txt2 != "": txt_passon = txt2
|
if txt == "" and txt2 != "": txt_passon = txt2
|
||||||
# 引入一个有cookie的chatbot
|
# 引入一个有cookie的chatbot
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户