mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
feat(models): add baidu ernie-5.1
This commit is contained in:
@@ -14,12 +14,13 @@ from models.session_manager import SessionManager
|
||||
from .qianfan_session import QianfanSession
|
||||
|
||||
DEFAULT_API_BASE = "https://qianfan.baidubce.com/v2"
|
||||
DEFAULT_MODEL = const.ERNIE_5
|
||||
DEFAULT_MODEL = const.ERNIE_5_1
|
||||
DEFAULT_VISION_MODEL = const.ERNIE_45_TURBO_VL
|
||||
|
||||
# Qianfan models that natively understand images. Other ERNIE variants
|
||||
# are text-only and must not receive image payloads.
|
||||
_VISION_CAPABLE_MODELS = {
|
||||
const.ERNIE_5_1,
|
||||
const.ERNIE_5,
|
||||
const.ERNIE_X1_1,
|
||||
const.ERNIE_45_TURBO_VL,
|
||||
|
||||
@@ -3,7 +3,7 @@ from common.log import logger
|
||||
|
||||
|
||||
class QianfanSession(Session):
|
||||
def __init__(self, session_id, system_prompt=None, model="ernie-5.0"):
|
||||
def __init__(self, session_id, system_prompt=None, model="ernie-5.1"):
|
||||
super().__init__(session_id, system_prompt)
|
||||
self.model = model
|
||||
self.reset()
|
||||
|
||||
Reference in New Issue
Block a user