refactor(api): move model_runtime into dify_graph (#32858)

This commit is contained in:
-LAN- authored and GitHub committed 2026-03-02 20:15:32 +08:00
1 parent e985e73bdc
commit 4fd6b52808
253 files changed
+557 -589

No files matched your search

@@ -5,7 +5,7 @@ import pytest
from core.llm_generator.output_parser.errors import OutputParserError
from core.llm_generator.output_parser.structured_output import invoke_llm_with_structured_output
from core.model_runtime.entities.llm_entities import (
from dify_graph.model_runtime.entities.llm_entities import (
LLMResult,
LLMResultChunk,
LLMResultChunkDelta,
@@ -13,13 +13,13 @@ from core.model_runtime.entities.llm_entities import (
LLMResultWithStructuredOutput,
LLMUsage,
)
from core.model_runtime.entities.message_entities import (
from dify_graph.model_runtime.entities.message_entities import (
AssistantPromptMessage,
SystemPromptMessage,
TextPromptMessageContent,
UserPromptMessage,
)
from core.model_runtime.entities.model_entities import AIModelEntity, ModelType
from dify_graph.model_runtime.entities.model_entities import AIModelEntity, ModelType
def create_mock_usage(prompt_tokens: int = 10, completion_tokens: int = 5) -> LLMUsage: