mirror of https://github.com/THUDM/ChatGLM-6B
修改默认值,以便接口文档直接调用
parent
e63afa6f45
commit
be2c943b61
2
api.py
2
api.py
|
@ -37,7 +37,7 @@ app = FastAPI(lifespan=lifespan)
|
||||||
|
|
||||||
class Item(BaseModel):
|
class Item(BaseModel):
|
||||||
prompt: str = "你好"
|
prompt: str = "你好"
|
||||||
history: list[tuple[str, str]] = [[]]
|
history: list[tuple[str, str]] = []
|
||||||
max_length: int = 2048
|
max_length: int = 2048
|
||||||
top_p: float = 0.7
|
top_p: float = 0.7
|
||||||
temperature: float = 0.95
|
temperature: float = 0.95
|
||||||
|
|
Loading…
Reference in New Issue