Browse Source

fix: function calling

Yeuoly 8 months ago
parent
commit
a0a110c147

+ 1 - 1
internal/core/plugin_manager/serverless.go

@@ -74,7 +74,7 @@ func (p *PluginManager) getServerlessPluginRuntimeModel(
 		)
 
 		if err == db.ErrDatabaseNotFound {
-			return nil, fmt.Errorf("plugin not found: %s", identity.String())
+			return nil, fmt.Errorf("plugin serverless runtime not found: %s", identity.String())
 		}
 
 		if err != nil {

+ 0 - 5
internal/types/entities/model_entities/llm.go

@@ -161,11 +161,6 @@ func (p *PromptMessage) UnmarshalJSON(data []byte) error {
 		}
 	}
 
-	// validate tool call id
-	if p.Role == PROMPT_MESSAGE_ROLE_TOOL && p.ToolCallId == "" {
-		return errors.New("tool call id is required")
-	}
-
 	return nil
 }