修改模型选择方式
This commit is contained in:
parent
26126a10c8
commit
b0b14fef3c
|
|
@ -83,9 +83,9 @@ func WSReceiveMessageService(userID, sessionID int, channel string, msg proto.WS
|
|||
var resErr error
|
||||
var resID uint
|
||||
//处理消息
|
||||
if msg.Type == "ollama" {
|
||||
if model.Type == "ollama" {
|
||||
resErr, resID = ReceiveOllamaSession(userID, sessionID, channel, msg)
|
||||
} else if msg.Type == "spark" {
|
||||
} else if model.Type == "spark" {
|
||||
resErr, resID = ReceiveSparkSession(userID, sessionID, channel, msg, modelParam)
|
||||
} else {
|
||||
return errors.New("model not exist"), 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue