mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2026-02-08 23:12:18 +08:00
[model] support MiniCPM-o-4.5 (#10163)
Co-authored-by: Yaowei Zheng <hiyouga@buaa.edu.cn>
This commit is contained in:
@@ -13,14 +13,14 @@
|
||||
# limitations under the License.
|
||||
|
||||
import time
|
||||
from enum import Enum, unique
|
||||
from enum import StrEnum, unique
|
||||
from typing import Any, Literal
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
@unique
|
||||
class Role(str, Enum):
|
||||
class Role(StrEnum):
|
||||
USER = "user"
|
||||
ASSISTANT = "assistant"
|
||||
SYSTEM = "system"
|
||||
@@ -29,7 +29,7 @@ class Role(str, Enum):
|
||||
|
||||
|
||||
@unique
|
||||
class Finish(str, Enum):
|
||||
class Finish(StrEnum):
|
||||
STOP = "stop"
|
||||
LENGTH = "length"
|
||||
TOOL = "tool_calls"
|
||||
|
||||
Reference in New Issue
Block a user