Skip to content

Commit

Permalink
feat: dbgpts modules bug fix (eosphoros-ai#1921)
Browse files Browse the repository at this point in the history
Co-authored-by: 途杨 <[email protected]>
Co-authored-by: lhwan <[email protected]>
Co-authored-by: hustcc <[email protected]>
  • Loading branch information
4 people authored and Hopshine committed Sep 10, 2024
1 parent de7157a commit dfb4bbc
Show file tree
Hide file tree
Showing 374 changed files with 1,598 additions and 1,602 deletions.
4 changes: 4 additions & 0 deletions dbgpt/agent/core/base_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ async def generate_reply(
received_message=received_message,
rely_messages=rely_messages,
)

retry_message.rounds = reply_message.rounds + 1

retry_message.content = fail_reason
retry_message.current_goal = received_message.current_goal

Expand All @@ -351,6 +354,7 @@ async def generate_reply(
await sender.send(
retry_message, self, reviewer, request_reply=False
)
reply_message.rounds = retry_message.rounds + 1

# In manual retry mode, load all messages of the last speaker as dependent messages # noqa
logger.info(
Expand Down
6 changes: 5 additions & 1 deletion dbgpt/agent/core/plan/team_auto_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ async def act(
)
speaker: Agent = sender
final_message = message.content
rounds = message.rounds
for i in range(self.max_round):
if not self.memory:
return ActionOutput(
Expand Down Expand Up @@ -196,11 +197,12 @@ async def act(

plan_message = await planner.generate_reply(
received_message=AgentMessage.from_llm_message(
{"content": message.content}
{"content": message.content, "rounds": rounds}
),
sender=self,
reviewer=reviewer,
)
rounds = plan_message.rounds
await planner.send(
message=plan_message, recipient=self, request_reply=False
)
Expand Down Expand Up @@ -228,6 +230,7 @@ async def act(
"plan_task": now_plan.sub_task_content,
"plan_task_num": now_plan.sub_task_num,
},
rounds=rounds + 1,
)
# select the next speaker
speaker, model = await self.select_speaker(
Expand Down Expand Up @@ -264,6 +267,7 @@ async def act(
await speaker.send(
agent_reply_message, self, reviewer, request_reply=False
)
rounds = agent_reply_message.rounds

plan_result = ""
final_message = reply_message["content"]
Expand Down
2 changes: 1 addition & 1 deletion dbgpt/app/static/web/404.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="icon" href="/favicon.ico"/><meta name="description" content="Revolutionizing Database Interactions with Private LLM Technology"/><meta property="og:description" content="eosphoros-ai"/><meta property="og:title" content="DB-GPT"/><link rel="preload" href="/_next/static/css/f8eb45c952dd19e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/f8eb45c952dd19e2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-aae1f4a1a3b156bd.js" defer=""></script><script src="/_next/static/chunks/framework-e41fd17eac0ca504.js" defer=""></script><script src="/_next/static/chunks/main-05be4496aadb43c7.js" defer=""></script><script src="/_next/static/chunks/pages/_app-72304f997d4f174e.js" defer=""></script><script src="/_next/static/chunks/pages/_error-4fa9991a75118e6f.js" defer=""></script><script src="/_next/static/-L9Od0w1XElCNcbCi4hJV/_buildManifest.js" defer=""></script><script src="/_next/static/-L9Od0w1XElCNcbCi4hJV/_ssgManifest.js" defer=""></script><link rel="stylesheet" href="/_next/static/css/antd-output/antd.min.7d5365b5.css"/></head><body><div id="__next"><div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"-L9Od0w1XElCNcbCi4hJV","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="icon" href="/favicon.ico"/><meta name="description" content="Revolutionizing Database Interactions with Private LLM Technology"/><meta property="og:description" content="eosphoros-ai"/><meta property="og:title" content="DB-GPT"/><link rel="preload" href="/_next/static/css/f8eb45c952dd19e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/f8eb45c952dd19e2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-f159616fcd1bda6b.js" defer=""></script><script src="/_next/static/chunks/framework-bf941633d42c5f92.js" defer=""></script><script src="/_next/static/chunks/main-28c79a921c889131.js" defer=""></script><script src="/_next/static/chunks/pages/_app-690c49bd776698cb.js" defer=""></script><script src="/_next/static/chunks/pages/_error-8095ba9e1bf12f30.js" defer=""></script><script src="/_next/static/_LUlP8fg3TFDUAFikQDdn/_buildManifest.js" defer=""></script><script src="/_next/static/_LUlP8fg3TFDUAFikQDdn/_ssgManifest.js" defer=""></script><link rel="stylesheet" href="/_next/static/css/antd-output/antd.min.7d5365b5.css"/></head><body><div id="__next"><div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"_LUlP8fg3TFDUAFikQDdn","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
2 changes: 1 addition & 1 deletion dbgpt/app/static/web/404/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="icon" href="/favicon.ico"/><meta name="description" content="Revolutionizing Database Interactions with Private LLM Technology"/><meta property="og:description" content="eosphoros-ai"/><meta property="og:title" content="DB-GPT"/><link rel="preload" href="/_next/static/css/f8eb45c952dd19e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/f8eb45c952dd19e2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-aae1f4a1a3b156bd.js" defer=""></script><script src="/_next/static/chunks/framework-e41fd17eac0ca504.js" defer=""></script><script src="/_next/static/chunks/main-05be4496aadb43c7.js" defer=""></script><script src="/_next/static/chunks/pages/_app-72304f997d4f174e.js" defer=""></script><script src="/_next/static/chunks/pages/_error-4fa9991a75118e6f.js" defer=""></script><script src="/_next/static/-L9Od0w1XElCNcbCi4hJV/_buildManifest.js" defer=""></script><script src="/_next/static/-L9Od0w1XElCNcbCi4hJV/_ssgManifest.js" defer=""></script><link rel="stylesheet" href="/_next/static/css/antd-output/antd.min.7d5365b5.css"/></head><body><div id="__next"><div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"-L9Od0w1XElCNcbCi4hJV","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="icon" href="/favicon.ico"/><meta name="description" content="Revolutionizing Database Interactions with Private LLM Technology"/><meta property="og:description" content="eosphoros-ai"/><meta property="og:title" content="DB-GPT"/><link rel="preload" href="/_next/static/css/f8eb45c952dd19e2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/f8eb45c952dd19e2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-f159616fcd1bda6b.js" defer=""></script><script src="/_next/static/chunks/framework-bf941633d42c5f92.js" defer=""></script><script src="/_next/static/chunks/main-28c79a921c889131.js" defer=""></script><script src="/_next/static/chunks/pages/_app-690c49bd776698cb.js" defer=""></script><script src="/_next/static/chunks/pages/_error-8095ba9e1bf12f30.js" defer=""></script><script src="/_next/static/_LUlP8fg3TFDUAFikQDdn/_buildManifest.js" defer=""></script><script src="/_next/static/_LUlP8fg3TFDUAFikQDdn/_ssgManifest.js" defer=""></script><link rel="stylesheet" href="/_next/static/css/antd-output/antd.min.7d5365b5.css"/></head><body><div id="__next"><div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"_LUlP8fg3TFDUAFikQDdn","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>

This file was deleted.

Loading

0 comments on commit dfb4bbc

Please sign in to comment.