Skip to content

Commit

Permalink
fix: model supported params.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhjz committed Nov 9, 2023
1 parent 5c6e969 commit e6011e5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
24 changes: 16 additions & 8 deletions src/qianfan/resources/llm/chat_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -121,7 +122,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -133,7 +135,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -145,7 +148,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -157,7 +161,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -169,7 +174,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -181,7 +187,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -193,7 +200,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand Down
24 changes: 16 additions & 8 deletions src/qianfan/resources/llm/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -117,7 +118,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -129,7 +131,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -141,7 +144,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -153,7 +157,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -165,7 +170,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -177,7 +183,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand All @@ -189,7 +196,8 @@ def _supported_models(cls) -> Dict[str, QfLLMInfo]:
optional_keys={
"stream",
"user_id",
"temperaturetop_k",
"temperature",
"top_k",
"top_p",
"penalty_score",
"stop",
Expand Down

0 comments on commit e6011e5

Please sign in to comment.