Code Monkey home page Code Monkey logo

marcolivierbouch / openassistantgpt Goto Github PK

View Code? Open in Web Editor NEW
159.0 7.0 60.0 5.01 MB

An Open-Source Saas for Crafting/Building/Creating Chatbots with OpenAI's Assistant API that you can add to your website.

Home Page: https://openassistantgpt.io

License: GNU General Public License v3.0

TypeScript 78.69% CSS 13.09% JavaScript 1.75% Shell 0.02% HTML 1.65% MDX 4.81%
ai chatbot customgpt js openai-api openaai artificial-intelligence assistant assistant-chat-bots web

openassistantgpt's Issues

Image uploading

With GPT 4o there are a ton of use cases for this. Would be really great to have. Put it in a premium product.

Styling Response Text

Is your feature request related to a problem? Please describe.
This is probably the easiest and most fairly-priced implementation of an OpenAI assistant chatbot. Appreciate your work on this.

The text in the embedded iframe chatbot is really spaced out. There is padding and margins that make a short answer look very long. Since my assistant returns items as a list, the spacing is even more of an issue due to a gap before the ul starts. Here's an example: https://capture.dropbox.com/bpdti55tzvCoHid8

Describe the solution you'd like
I'd love to see some kind of CSS documentation where I can modify the margins/padding/space between elements

Describe alternatives you've considered
Since it's an iframe embed, my own stylesheet doesn't work. (Or could it, somehow?)The non-standard classes in the responses also make it hard to pin down styling. There are gaps I can't seem to find using the dev tools in my browser – gaps between elements or maybe something to do with the flex.

Additional context
Add any other context or screenshots about the feature request here.

Thanks!

Title: Add Continuous Testing for Project

Is your feature request related to a problem? Please describe.
We don't have a way to check if our code is good enough before we put it out for everyone to use. Sometimes, mistakes slip through and cause problems later on.

Describe the solution you'd like
We should set up something called "continuous integration" (CI) for our project. It's like having a robot check our code every time we make a change to make sure it's okay. This will help us catch mistakes early and make sure everything works smoothly.

Describe alternatives you've considered
Right now, we mostly rely on ourselves to test our code before sharing it. But this can be slow and we might miss things. With CI, the computer does a lot of this work for us, saving time and reducing errors.

Additional context
Setting up CI means we'll use tools like Jenkins, Travis CI, or GitHub Actions to automatically test our code and make sure it's up to scratch. It'll make our development process smoother and our final product more reliable for users.

Max Token/Message Control

A big reason why the pickup on the Assistants API has been so slow, is the token use can get out of control. With the new V2 support you added, this can be addressed.

"Context window management
The Assistants API automatically manages the truncation to ensure it stays within the model's maximum context length. You can customize this behavior by specifying the maximum tokens you'd like a run to utilize and/or the maximum number of recent messages you'd like to include in a run."

So some UI to let us set the max messages, and tokens a run will use. It will also fix another issue where in very long conversations the bots tend to go off message. With a maximum number of recent messages, we can limit this.

Instructions for installing and deploying

hi, I would really appreciate if there is a guide on how we can set up the app ourselves after forking it.

I tried everything but it is still giving me errors when deploying locally and on vercel. Please provide detailed instructions on how to setup the database and everything else if possible.

Thank you.

Getting empty array in api/models api

Hi I just connected to this repo with my local postgres but the issues is in this api/model always getting [] array as response. But in the production mode https://www.openassistantgpt.io/dashboard/new/chatbot its giving the model name. Have you added those in DB by hand or this suppose to added when a user will add a gpt key?

Also I can see there is one api available to get all the models available associated with my gpt key but why its showing only the 2 model?

Tried to deploy

It worked on vercel, however I cannot make a bot even after scraping . Says no models available even after setting key in settings main config.

image

Links not properly marked up

Links from GPT Assistants are specified like this: [Link Text] (https://urlgoeshere.com/). The link rendered in the chatbot shows both the link text and URL, but it's all run together like this: Link Texthttps://urlgoeshere.com (the entire string is underlined and run together).

Screenshot 2024-05-14 at 10 27 54 PM

I'm using gpt-4-turbo.

Desktop (please complete the following information):

  • OS: MacOS 14.4.1
  • Browser : Chrome
  • Version 124.0.6367.207

I'm using the free version right now and am LOVING it!!
Thanks

Max Tokens not set correctly.

When setting the tokens, whatever you set for the input tokens, shows up (after saving, leaving, and returning to the settings) as the value for both the input and output tokens. I'm not sure if just a UI issue, or if the value is being set incorrectly as well.

Auto Scroll on Chat Widget

Is your feature request related to a problem? Please describe.
We have the OpenAsssistantGPT in a production environment and it appears that when communication with the bot, the chat UI does not automatically scroll down to the most recent message.

Describe the solution you'd like
As the problem describes, I believe he solution would be to have that chatUI automatically scroll down to the most recent message in the chat.

Describe alternatives you've considered
I think an alternative option is that a web developer can edit the Chat Widget code to create this autoscroll feature

InvalidCharacterError

InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('rose-pine dark') contains HTML space characters, which are not valid in tokens.

Any idea why this is happening?

Is ChatWindow.js script not working?

Describe the bug
When trying to use chatwindow.js, nothing appears on Next.js page

To Reproduce
Steps to reproduce the behavior:

  1. On a Nextjs page, load the the normal chatbot by following instructions and it works fine and loads the following below
return (
        <main className={styles.centerDiv}>
            <Script
                src="https://www.openassistantgpt.io/chatbot.js"
                strategy="afterInteractive"
            />
            <div
                className={styles.chatOverlay}
                id="openassistantgpt-chatbot"
            ></div>
        </main>
    )
drawing
  1. However, attempting to use ChatWindow.js results in nothing appearing
return (
        <main className={styles.centerDiv}>
            <Script
                src="https://www.openassistantgpt.io/chatwindow.js"
                strategy="afterInteractive"
            />
            <div
                className={styles.chatOverlay}
                id="openassistantgpt-chatbot"
            ></div>
        </main>
    )

Expected behavior
I expect a chatWindow widget similar to the OpenAssistant website
image

Screenshots
See above

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome, Firefox

Additional context
Currently using Next.js 14 App router and trying to add the widget in a client component page

Thanks in advanced!!

Response Message

Apologies, this is more of a question and we are unsure if this response below we are receiving is coming from OpenAssistantGPT or from OpenAI:

For Context:
We had a lot of people test our bot at once and we are aware of the rate limits, however, everyone received this message during that rate limit freeze:

“Oops! An error has occurred. Please ensure that your OpenAI account is configured correctly with a valid credit card. If the issue persists, feel free to reach out to our support team for assistance. We're here to help!”

Thanks for any confirmation!

Error: Failed. `An error occurred. Please try again later.`

Describe the bug
A clear and concise description of what the bug is.
When I go to chatbot and start chatting, anything I ask it gives this reply An error occurred. Please try again later. I think it might be due the the waitForRun function in /api/chatbots/[chatbotId]/chat/route.ts is returning run status as failed.

But how can I fix it?

To Reproduce
Steps to reproduce the behavior:

  1. Go tohttps://www.openassistantgpt.io/dashboard/chatbots/
  2. Click on a Chatbot
  3. Start Chatting with it, ask any question
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.
Should return the response of the question asked

Screenshots
If applicable, add screenshots to help explain your problem.
image

When will you support gpt-4o?

I tried to manually select the model at platform.openai.com but that results in an error when using the assistant. Thanks!

Can not add API KEY

Describe the bug
When typing our OPEN AI key, the save logo is stuck at loading

Expected behavior
Can expect a toast that it has been accepted

Screenshots
image

Desktop (please complete the following information):

  • OS: [Windows]
  • Browser [Brave]

Allow chats to be saved automatically

Having chats save automatically instead of only when the user submits an inquiry would allow me to improve the chatbot prompt more effectively.

Love this project. Hope to support development soon

Hello, I want to know the OpenAssistantGPT When will support for mobile devices be available?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Config on Vercel

Hello,

I try to deploy on Vercel with default configuration but I have an issue during building. I try to override the command but it doesn't work. Can you share some details about how to deploy ? Thanks for the work !

Is there any plan to switch to assistant v2?

Hi,

firstly I would like to thank you for such a great job. I am able to run this repo locally and make it interactive via the OpenAI api. Recently, OpenAI imports the v2 version for assistant and a separate vectorStore is imported. I would like to know is there any plan to switch the v2 version? or provides an option for user to enable v2 version in a new chatbot?

Thanks

instructions

hello, could you please just in short tell us instructions on what we need to do in order to fork it

  1. fork it
  2. create a env file with exactly what keys?
  3. npm install?

i cant get it to work i tried 10 times, the problem is that the models are not being fetched, the api key is being set because it works to upload files etc, but it doesnt work to fetch any models so i cant create any bot succesfully

User Inquiry chats aren't scrollable

Describe the bug
When viewing user inquiries, the chat history isn't scrollable.

To Reproduce
Steps to reproduce the behavior:

  1. Go 'here'
  2. Click on the ellipses for a chatbot
  3. Click "User Inquiries"
  4. Select an inquiry

Expected behavior
Ideally this would scroll so that I can view the entire chat history without it getting cut off.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Arc
  • Version: 1.41.0

Hello, I want to know Can OpenAssistantGPT be independently deployed as our own service?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

contentlayer not available for Next 14? Is there a Suggested workarouind?

Describe the bug
During npm install I get the following error:

npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/next
npm ERR! next@"^14.2.2" from the root project
npm ERR! peer next@"^13.0.0 || ^14.0.0" from @next/[email protected]
npm ERR! node_modules/@next/third-parties
npm ERR! @next/third-parties@"^14.1.3" from the root project
npm ERR! 3 more (@sentry/nextjs, next-auth, next-themes)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^12 || ^13" from [email protected]
npm ERR! node_modules/next-contentlayer
npm ERR! next-contentlayer@"^0.3.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/next
npm ERR! peer next@"^12 || ^13" from [email protected]
npm ERR! node_modules/next-contentlayer
npm ERR! next-contentlayer@"^0.3.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

A clear and concise description of what the bug is:

I'm pretty sure this is because contentlayer doesn't work on Next 14?
I guess I'll give --legacy-peer-deps a try...

To Reproduce
git clone
npm install

Expected behavior
No errors

Additional context
Add any other context about the problem here.

Some way to deal with and format document references in V2 replies.

These are currently not formatting at all and look like "【4:0†source】". I have not had any luck prompting to strip these out. Ideally we could have an option to 1st) Strip them out 2nd) Link to the actual document.

When they are displayed they should look like [1] [2] [3] etc

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.