Skip to content

Commit

Permalink
modify default model value by doc (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaojin3616 authored Feb 7, 2024
2 parents 4906e31 + 228f684 commit c87527c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/backend/bisheng/database/models/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TemplateSkillBase(SQLModelSerializable):
nullable=False,
server_default=text('CURRENT_TIMESTAMP'),
onupdate=text('CURRENT_TIMESTAMP')))
guide_word: Optional[str] = Field(index=False)
guide_word: Optional[str] = Field(index=False, max_length=1000)


class Template(TemplateSkillBase, table=True):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ class HostYuanChat(BaseHostChatLLM):
# use custom llm chat api, api should compatiable with openai definition
model_name: str = Field('Yuan2-2B-Janus-hf', alias='model')

temperature: float = 0.1
top_p: float = 0.1
temperature: float = 1
top_p: float = 0.9
max_tokens: int = 4096
host_base_url: str

Expand All @@ -554,8 +554,8 @@ class HostYiChat(BaseHostChatLLM):
# use custom llm chat api, api should compatiable with openai definition
model_name: str = Field('Yi-34B-Chat', alias='model')

temperature: float = 0.1
top_p: float = 0.1
temperature: float = 0.6
top_p: float = 0.8
max_tokens: int = 4096
host_base_url: str

Expand Down

0 comments on commit c87527c

Please sign in to comment.