Comments (10)
The KeyError
was a bug that I have hopefully fixed now.
About the Bing cookie, it's not great that currently you have to set it up even if you don't intend to use Bing or else the bot will crash. I'll try to make it possible to configure what models to enable/disable sometime in the coming days.
from signal-aichat.
About Bing API limits, I actually don't know. The GPT error though is a bug that should be fixed now with v0.3.1.
from signal-aichat.
It seems like you haven't set up Bing with the necessary cookies.
from signal-aichat.
I added a bing cookie, it shows:
signal-aichat-bot | 2023-05-10 18:46:29,212 bot: [INFO] Chat context created for 0n2Ruz0qsQdRFDMlUBP5dyVRhojhmmtgK3HX3U/hXyo=+17c62f31-605f-4fe2-862e-9l10e2a6f27e
signal-aichat-bot | 2023-05-10 18:46:29,465 bot: [INFO] HTTP Request: GET https://edgeservices.bing.com/edgesvc/turing/conversation/create "HTTP/1.1 200 OK"
signal-aichat-bot | 2023-05-10 18:46:29,466 bot: [ERROR] Processing message (139811234150880) by ai failed
signal-aichat-bot | Traceback (most recent call last):
signal-aichat-bot | File "/home/signal-aichat/.local/lib/python3.10/site-packages/semaphore/bot.py", line 128, in _handle_message
signal-aichat-bot | await func(context)
signal-aichat-bot | File "/home/signal-aichat/signal-aichat.py", line 81, in ai
signal-aichat-bot | response = await triggers[default_model](text, ctx)
signal-aichat-bot | KeyError: 'gpt'
My .env file:
# Signal
SIGNAL_PHONE_NUMBER=+3--------98
# ChatGPT
OPENAI_API_KEY=sk-yPl4---------
# Llama
#CACHE=1
#HOST=0.0.0.0
#PORT=8000
#MODEL=/llama.cpp/models/GPT4xAlpaca.bin
#LLAMA_API_BASE=http://signal-aichat-llama:8000/v1
# Default model options are bing, gpt, or llama
DEFAULT_MODEL=gpt
from signal-aichat.
I'll try to make it possible to configure what models to enable/disable sometime in the coming days.
That would be cool, I'll be waiting.
from signal-aichat.
@p6002 This should now be possible with the latest release.
from signal-aichat.
Thanks, Bing started working and giving answers from internet (with a limit I guess) after couple messages:
I encountered an error: sent 1000 (OK); then received 1000 (OK)
This is free api limit?
Sometimes:
I encountered an error: 'adaptiveCards'
And maybe can I change Bing language in answered messages? Should be possible i think.
GPT quotes and sends a message but only with an error:
I encountered an error: Error communicating with OpenAI: Invalid URL 'None/chat/completions': No scheme supplied. Perhaps you meant https://None/chat/completions?
from signal-aichat.
l'll be waiting, it would also be nice to see the ability to change the language, or the ability to direct the bot with text like in the web version.
from signal-aichat.
Features like those would have to be implemented in the library I'm using. Though the bot will reply in whatever language your write to it, no?
from signal-aichat.
Ok I'll take a peek at what you posted, because in addition to gpt bing can also be a useful assistant.
from signal-aichat.
Related Issues (11)
- Allow specifying the gpt model HOT 6
- Latest master tag fails HOT 6
- delete HOT 1
- Add basic commands to reset the history HOT 1
- Signal aichat fails to start.
- Ollama Support HOT 1
- Easiest way to add Claude support? HOT 1
- Error: I have no name! HOT 4
- How to chat? HOT 1
- cookies.json mount is error prone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signal-aichat.