Closed andrewginns closed 2 months ago
@andrewginns is attempting to deploy a commit to the morphic Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
morphic | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 15, 2024 1:07am |
Overview
This pull request introduces a new feature to the
researcher
function in theresearcher.tsx
file. The feature adds the current date and time to the system prompt that is passed to the Language Model (LLM). The date and time are fetched programmatically and change based on the system time.Ensures that any web searches related to time sensitive topics have the correct current datetime e.g.
Changes Introduced
researcher
Function: Theresearcher
function in theresearcher.tsx
file has been updated to include the current date and time in the system prompt:currentDate
is declared and assigned the current date and time using the JavaScriptDate
object. ThecurrentDate
is then converted to a string and included in the system prompt that is passed to thenonexperimental_streamText
function.Usage
No additional steps are required to use this feature. The date and time will be automatically included in the system prompt each time the
researcher
function is called.Testing
The updated
researcher
function has been tested locally to ensure that the current date and time are correctly included in the system prompt and that they change based on the system time.