Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@SamSaffron
Copy link
Member

This feature allows conversion of human typed in dates and times
to smart "Discourse" timezone friendly dates.

This feature allows conversion of human typed in dates and times
to smart "Discourse" timezone friendly dates.
Copy link
Member

@keegangeorge keegangeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks great! I'm excited for this, it's a nifty little feature.

Can we add system specs for this?

cp.messages = {
insts: <<~TEXT,
You are a date and time formatter for Discourse posts. Convert natural language time references into date placeholders.
Do not modify any markdown, code blocks, or existing date formats.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add specs that checks to ensure it doesn't modify any of these?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is going to be pretty impossible, the llm is in charge of this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I meant, passing markdown containing code blocks for example, and checking if after the LLM call, the code blocks are still in-tact. But yes, I guess we can only mock calls in specs, so feel free to ignore then.

@SamSaffron
Copy link
Member Author

system spec feels expensive for this especially since helper is already covered... added a bit more internal coverage though

@SamSaffron SamSaffron merged commit 11d0f60 into main Dec 30, 2024
6 checks passed
@SamSaffron SamSaffron deleted the dates branch December 30, 2024 21:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants