Giter Club home page Giter Club logo

Comments (4)

musashi-garami avatar musashi-garami commented on June 24, 2024

Anyone have any luck with being able to do this ? I've tried getting the a,i to add the <img tag into it's replies, but it's still just text.
Is this something that's possible?

from nextjs-openai-doc-search.

gregnr avatar gregnr commented on June 24, 2024

Hey @musashi-garami, agreed it would be great to support markdown in this project. In the mean time, feel free to check out how we do this in the Supabase docs/dashboard using ReactMarkdown:

https://github.com/supabase/supabase/blob/5d457bdc7567db9a73a02a3d10e984a641f6cc3d/packages/ui/src/components/Command/AiCommand.tsx#L418-L435

from nextjs-openai-doc-search.

musashi-garami avatar musashi-garami commented on June 24, 2024

Ok that looks perfect! But I'm struggling to install react-markdown. I normally use NPM but I see this builds with PNPM and vercel is not building, I'm assuming due to incorrect pnpm-lock.yaml file ? But I'm not experienced with PNPM, I installed latest PNPM, I tried to PNPM install react-markdown but didn't work.. so I NPM install react-markdown, but with my limited understanding it appears the pnpm-lock.yaml is not adding react-markdown as a dependency (which is failing the vercel build)

from nextjs-openai-doc-search.

musashi-garami avatar musashi-garami commented on June 24, 2024

Nevermind, looks like PNPM wasn't working in VS code terminal due to windows permissions, i ran in admin powershell and it installed properly.

Then another build error, was passing {completion} as a children prop to react-markdown (as their docs describe) but ESLint rules is not happy with that so passed {completion} between the react markdown tags

from nextjs-openai-doc-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.