Giter Club home page Giter Club logo

Comments (10)

cycneuramus avatar cycneuramus commented on June 27, 2024 1

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.

cycneuramus avatar cycneuramus commented on June 27, 2024 1

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.

cycneuramus avatar cycneuramus commented on June 27, 2024

It seems like you haven't set up Bing with the necessary cookies.

from signal-aichat.

p6002 avatar p6002 commented on June 27, 2024

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.

p6002 avatar p6002 commented on June 27, 2024

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.

cycneuramus avatar cycneuramus commented on June 27, 2024

@p6002 This should now be possible with the latest release.

from signal-aichat.

p6002 avatar p6002 commented on June 27, 2024

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.

p6002 avatar p6002 commented on June 27, 2024

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.

cycneuramus avatar cycneuramus commented on June 27, 2024

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.

p6002 avatar p6002 commented on June 27, 2024

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)

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.