Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(prompts): Implement prompts as code examples beneath prompt #5843

Merged
merged 9 commits into from
Dec 30, 2024

Conversation

cephalization
Copy link
Contributor

@cephalization cephalization commented Dec 30, 2024

code.export.mov
  • Collapsible code accordion

2024-12-30 14 12 18

openai

  • python prompts as code
  • typescript prompts as code

Resolves #5776

@cephalization cephalization force-pushed the cephalization/prompts/5776-prompts-as-code branch from 5cbe4e4 to e25b015 Compare December 30, 2024 19:28
@cephalization cephalization marked this pull request as ready for review December 30, 2024 19:31
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Dec 30, 2024
app/src/pages/prompt/promptCodeSnippets.tsx Outdated Show resolved Hide resolved
app/src/pages/prompt/promptCodeSnippets.tsx Outdated Show resolved Hide resolved
app/src/pages/prompt/promptCodeSnippets.tsx Outdated Show resolved Hide resolved
app/src/pages/prompt/promptCodeSnippets.tsx Outdated Show resolved Hide resolved
@cephalization cephalization merged commit 879bb0a into prompts Dec 30, 2024
49 checks passed
@cephalization cephalization deleted the cephalization/prompts/5776-prompts-as-code branch December 30, 2024 21:44
mikeldking pushed a commit that referenced this pull request Dec 31, 2024
* feat(prompts): Implement prompts as code examples beneath prompt

- python prompts as code
- typescript prompts as code

* Implement typescript language formatter for prompts

* Align emitted code with openai documentation sample code

* Minor UX tweaks wrt code blocks and version details page

* Reduce tab size, update prompt mock data

* Make code card collapsible

* Make prompt code snippets conform to new schemas

* Tweak comment

* Refactor templates into lodash templates
mikeldking pushed a commit that referenced this pull request Jan 3, 2025
* feat(prompts): Implement prompts as code examples beneath prompt

- python prompts as code
- typescript prompts as code

* Implement typescript language formatter for prompts

* Align emitted code with openai documentation sample code

* Minor UX tweaks wrt code blocks and version details page

* Reduce tab size, update prompt mock data

* Make code card collapsible

* Make prompt code snippets conform to new schemas

* Tweak comment

* Refactor templates into lodash templates
mikeldking pushed a commit that referenced this pull request Jan 3, 2025
* feat(prompts): Implement prompts as code examples beneath prompt

- python prompts as code
- typescript prompts as code

* Implement typescript language formatter for prompts

* Align emitted code with openai documentation sample code

* Minor UX tweaks wrt code blocks and version details page

* Reduce tab size, update prompt mock data

* Make code card collapsible

* Make prompt code snippets conform to new schemas

* Tweak comment

* Refactor templates into lodash templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants