Closed thucpn closed 3 months ago
Latest commit: 1aaea28a2f0a857bcea11662e6b88f6f9fe63906
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The changes involve shifting the SYSTEM_PROMPT
environment variable declaration from getFrameworkEnvs
to getEngineEnvs
in helpers/env-variables.ts
. Additionally, the createChatEngine
functions in typescript/agent/chat.ts
now incorporate systemPrompt: process.env.SYSTEM_PROMPT
during chat engine initialization.
File Path | Change Summary |
---|---|
helpers/env-variables.ts |
Moved SYSTEM_PROMPT declaration from getFrameworkEnvs to getEngineEnvs . |
.../typescript/agent/chat.ts |
Updated createChatEngine to include systemPrompt: process.env.SYSTEM_PROMPT in OpenAIAgent constructor. |
.../typescript/chat/chat.ts |
Updated createChatEngine to include systemPrompt: process.env.SYSTEM_PROMPT in ContextChatEngine constructor. |
In the code's realm, where logic sways, A prompt now finds its rightful place. Moved with care, to engines' grace, It guides our chats through cyberspace. 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
systemPrompt
configuration for chat engines, allowing customization via environment variables.