petercat-ai / petercat

A conversational Q&A agent configuration system, self-hosted deployment solutions, and a convenient all-in-one application SDK, allowing you to create intelligent Q&A bots for your GitHub repositories
https://petercat.ai
MIT License
595 stars 16 forks source link

feat: fix the bot build #477

Closed xingwanying closed 1 week ago

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 10:06am
petercat-assistant[bot] commented 1 week ago

Walkthrough

This pull request introduces changes to enhance the bot building process by incorporating language support. It modifies several components to pass language information when fetching bot details and adjusts the bot creation prompts to be language-aware. Additionally, it fixes a script path in the package.json to ensure proper execution.

Changes

Files Summary
client/app/factory/edit/page.tsx Added language context to fetch bot info with language parameter.
client/app/services/BotsController.ts Refactored function to accept parameters object including language.
package.json Corrected script path for environment pulling.
server/agent/prompts/bot_builder.py Added language-based dynamic prompt generation.
server/agent/tools/bot_builder.py Fixed documentation formatting.
server/bot/router.py Changed language handling to use bot data language.
server/core/type_class/bot.py Added language field to bot configuration.
codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
server/bot/router.py 0.00% 1 Missing :warning:
Files with missing lines Coverage Δ
server/agent/prompts/bot_builder.py 57.14% <ø> (ø)
server/agent/tools/bot_builder.py 42.30% <ø> (ø)
server/core/type_class/bot.py 100.00% <ø> (ø)
server/bot/router.py 19.68% <0.00%> (-0.43%) :arrow_down:

... and 1 file with indirect coverage changes