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

Feature/markdown to html #337

Merged
merged 4 commits into from
May 14, 2024
Merged

Feature/markdown to html #337

merged 4 commits into from
May 14, 2024

Conversation

KevinEtchells
Copy link
Contributor

@KevinEtchells KevinEtchells commented May 10, 2024

Context

Converting markdown to HTML for SSR and CSR responses

Changes proposed in this pull request

Example conversion

image

Guidance to review

Non-streaming (SSR)

  • Visit /sessions/ with USE_STREAMING=False in your .env

STREAMING (CSR)

Because the Django endpoint isn't streaming markdown yet, it's best to use the Node.js websocket demo:

  • Run the node.js demo at /app/frontend/streaming-ai-response/ (it has its own readme)
  • Set USE_STREAMING=True in .env
  • In settings.py temporarily add "*" to CSP_DEFAULT_SRC
  • In sessions_view in views.py update endpoint = "ws://localhost:8888"
  • Visit /sessions/ and generate a response. Some words will be **bold**

Relevant links

Jira ticket: https://technologyprogramme.atlassian.net/browse/REDBOX-221?atlOrigin=eyJpIjoiNGQwNGVmMmIxYmQ0NDYxM2JkYzlhMzRiMWI3Y2VjNzAiLCJwIjoiaiJ9

@KevinEtchells KevinEtchells marked this pull request as ready for review May 13, 2024 15:08
@KevinEtchells KevinEtchells merged commit 58c6145 into main May 14, 2024
8 checks passed
@KevinEtchells KevinEtchells deleted the feature/markdown-to-html branch May 14, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants