bit-gpt / app

BitGPT it's your personal AI in your pocket
https://bitgpt.network
MIT License
457 stars 40 forks source link

Chat: Escape single and double quotes from messages before sending over request #520

Closed tiero closed 11 months ago

tiero commented 12 months ago

Can you try with special characters? liek #, $, \, /, etc..

tiero commented 12 months ago

This works for me

<img width="1024" alt="Logo" src="https://github.com/premAI-io/prem-app/assets/29598954/9fb2e2b5-89e8-40c9-a66f-eb20f6b00584">

# 🤖 Prem - Self Sovereign AI Infrastructure

[![Version](https://img.shields.io/github/v/release/premAI-io/prem-app?color=%235351FB&label=version)](https://github.com/premAI-io/prem-app/releases)
[![Release](https://github.com/premAI-io/prem-app/actions/workflows/on-tag.yaml/badge.svg?event=push)](https://github.com/premAI-io/prem-app/actions/workflows/on-tag.yaml)
[![Twitter](https://img.shields.io/twitter/follow/premai_io?style=social)](https://twitter.com/premai_io)
[![Discord](https://dcbadge.vercel.app/api/server/kpKk6vYVAn?style=social)](https://discord.com/invite/kpKk6vYVAn)

Prem provides a unified environment to develop AI applications and deploy AI models on your infrastructure. Abstracting away all technical complexities for AI deployment and ushering in a new era of privacy-centric AI applications - users can finally retain control and ownership of their models.

## 🚀 Getting started

- Install Prem on your Linux server for **Production** (Ubuntu, Debian) - [Installer script](#install-on-linux)
- Install Prem on your MacOS or Linux for **local development** - [Dowload the latest Prem Desktop App](https://github.com/premAI-io/prem-app/releases)
- Try out on the live demo instance - [app.prem.ninja](https://app.prem.ninja)

## 📄 Usage

In-depth documentation for installing and using Prem is available at [dev.premai.io](https://dev.premai.io)

## Demo

https://github.com/premAI-io/prem-app/assets/29598954/e2c4f9d9-636d-4bbb-ae62-e6eb929495ee
Janaka-Steph commented 12 months ago

This is your prompt? I get error "Failed to load resource: cannot parse response" in Mistral 128k

Janaka-Steph commented 12 months ago

Smaller prompt with special chars works fine

tiero commented 12 months ago

cc/ @filopedraz Can you share a short prompt with special chars that gives you an error?

For checking logs

cat ~/Library/Application\ Support/io.premai.prem-app/models/<service_id>/<service_id>/log
Janaka-Steph commented 11 months ago

Is it still a thing?

tiero commented 11 months ago

CLosing for now, let's re-open @filopedraz if you find anything the client chat should do!