Giter Club home page Giter Club logo

Comments (2)

d3287t328 avatar d3287t328 commented on May 24, 2024

I solved my issue with a few changes:

Manually installed pnpm manually: curl -fsSL https://get.pnpm.io/install.sh | sh - in my opinion this is an annoying dependency and would be simpler to not use, any idea why it is used?

No storage option exists to persist the session, which may result in unexpected behavior when using auth.
        If you want to set persistSession to true, please provide a storage option or you may set persistSession to false to disable this warning.
Failed to generate completion: {"error":{"message":"The server had an error while processing your request. Sorry about that!","type":"server_error","param":null,"code":null}}

To solve this warning message I had to create a new file in components:

import { createClient } from '@supabase/supabase-js'

const supabaseUrl = 'snip'
const supabaseKey = 'snip'

const supabase = createClient(supabaseUrl, supabaseKey, {
  persistSession: true,         // add persistSession here
  localStorage: window.localStorage,   // storage option 
})

There are a couple of issues with output still. My source is in standard markdown files and the markdown does not get stripped out properly per this image. Also there is no scroll up option in the chat window making earlier generated content unreadable. It also seems to sometimes produce more output then needed.

from nextjs-openai-doc-search.

thorwebdev avatar thorwebdev commented on May 24, 2024

This example doesn't use any auth, therefore persistSession needs to be set to false.

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.