Skip to content

Commit

Permalink
重命名
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyuxin committed Nov 17, 2023
1 parent 39e3e28 commit 4631cec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion generate/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2.2'
__version__ = '0.1.0'
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "generate-client"
version = "0.2.2"
name = "generate-core"
version = "0.1.0"
description = "文本生成,图像生成,语音生成"
authors = ["wangyuxin <[email protected]>"]
license = "MIT"
Expand Down
4 changes: 1 addition & 3 deletions tests/test_chat_completion_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ def test_model_type_is_unique() -> None:
{'temperature': 0.5, 'top_p': 0.85, 'max_tokens': 20},
],
)
def test_http_chat_model(
model_cls: Type[ChatCompletionModel], parameter_cls: Type[ModelParameters], parameters: dict
) -> None:
def test_http_chat_model(model_cls: Type[ChatCompletionModel], parameter_cls: Type[ModelParameters], parameters: dict) -> None:
model = model_cls(parameters=parameter_cls())
prompt = '这是测试,只回复你好'
sync_output = model.generate(prompt, **parameters)
Expand Down

0 comments on commit 4631cec

Please sign in to comment.