mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-05 19:11:52 +00:00
feat: call xunfei spark with stream, and fix the temperature bug (#2121)
Co-authored-by: aries_ckt <916701291@qq.com>
This commit is contained in:
@@ -291,6 +291,7 @@ class AWELAgentOperator(
|
||||
prompt_template = None
|
||||
if self.awel_agent.agent_prompt:
|
||||
from dbgpt.serve.prompt.api.endpoints import get_service
|
||||
|
||||
prompt_service = get_service()
|
||||
prompt_template = prompt_service.get_template(
|
||||
self.awel_agent.agent_prompt.code
|
||||
|
@@ -12,6 +12,7 @@ from dbgpt.core.awel.flow import (
|
||||
ResourceCategory,
|
||||
register_resource,
|
||||
)
|
||||
|
||||
from ....resource.base import AgentResource, ResourceType
|
||||
from ....resource.manage import get_resource_manager
|
||||
from ....util.llm.llm import LLMConfig, LLMStrategyType
|
||||
@@ -20,6 +21,7 @@ from ...agent_manage import get_agent_manager
|
||||
|
||||
def _agent_resource_prompt_values() -> List[OptionValue]:
|
||||
from dbgpt.serve.prompt.api.endpoints import get_service
|
||||
|
||||
prompt_service = get_service()
|
||||
prompts = prompt_service.get_target_prompt()
|
||||
return [
|
||||
|
Reference in New Issue
Block a user