Giter Site home page Giter Site logo

Comments (16)

yurnov avatar yurnov commented on May 26, 2024

Hi @onchera,

did you try to add it as separate lines?

from chatgpt-telegram-bot.

onchera avatar onchera commented on May 26, 2024
ENABLE_FUNCTIONS=true
PLUGINS=weather,ddg_web_search,ddg_translate,crypto,autotts
SHOW_PLUGINS_USED=true

I got it.

from chatgpt-telegram-bot.

onchera avatar onchera commented on May 26, 2024

Where is the manual about functions and plugins? Where can I find it?

from chatgpt-telegram-bot.

yurnov avatar yurnov commented on May 26, 2024

Starting from here and here

I using weather, worldtimeapi and youtube_audio_extractor plug-ins and it works fine for me

from chatgpt-telegram-bot.

onchera avatar onchera commented on May 26, 2024

Do you edit other files, instead of .env?

Starting from here and here

I using weather, worldtimeapi and youtube_audio_extractor plug-ins and it works fine for me

from chatgpt-telegram-bot.

yurnov avatar yurnov commented on May 26, 2024

Do you edit other files, instead of .env?

no. all others are the same*. I running in the docker container

*technically not fully, I running my versions with added twp PRs, this and that, but both of them don't change anything related to plugins in general.

Please show:

 cat .env | grep -v -e "^#" -e "TOKEN" -e "KEY"

And how do you run the bot? In case if it local python, show your:

python --version
python -m pip freeze

from chatgpt-telegram-bot.

onchera avatar onchera commented on May 26, 2024
ADMIN_USER_IDS=6320848263
ENABLE_IMAGE_GENERATION=false
ENABLE_TTS_GENERATION=false
ENABLE_TRANSCRIPTION=true
OPENAI_MODEL=gpt-4-turbo
OPENAI_BASE_URL=https://jewproxy.tech/proxy/azure/openai
ASSISTANT_PROMPT="You are assistant"
STREAM=false
BOT_LANGUAGE=ru
ENABLE_FUNCTIONS=true
PLUGINS=weather, ddg_web_search, ddg_translate, crypto, autotts
SHOW_PLUGINS_USED=true

from chatgpt-telegram-bot.

onchera avatar onchera commented on May 26, 2024

python3 -m pip freeze


acme==2.9.0
certbot==2.9.0
certifi==2023.11.17
chardet==5.2.0
charset-normalizer==3.3.2
click==8.1.7
ConfigArgParse==1.7
configobj==5.0.8
cryptography==41.0.7
distro==1.9.0
gTTS==2.5.1
httplib2==0.20.4
idna==3.6
josepy==1.14.0
parsedatetime==2.6
pycurl==7.45.2
PyICU==2.12
pyOpenSSL==23.2.0
pyparsing==3.1.1
pyRFC3339==1.1
PySimpleSOAP==1.16.2
python-apt==2.7.6
python-debian==0.1.49
python-debianbts==4.0.2
pytube==15.0.0
pytz==2024.1
reportbug==13.0.1
requests==2.31.0
six==1.16.0
urllib3==1.26.18
vk-api==11.9.9

python3 --version

Python 3.11.8

from chatgpt-telegram-bot.

yurnov avatar yurnov commented on May 26, 2024

Most probably issue is here OPENAI_BASE_URL=https://jewproxy.tech/proxy/azure/openai, please check that Azure OpenAI support external functions

from chatgpt-telegram-bot.

UJIbHYP avatar UJIbHYP commented on May 26, 2024

Most probably issue is here OPENAI_BASE_URL=https://jewproxy.tech/proxy/azure/openai, please check that Azure OpenAI support external functions

Thank you, I'll check.

from chatgpt-telegram-bot.

onchera avatar onchera commented on May 26, 2024

Supports.
https://techcommunity.microsoft.com/t5/microsoft-azure-netherlands/how-to-leverage-plugins-for-azure-openai-service/td-p/3863986

Most probably issue is here OPENAI_BASE_URL=https://jewproxy.tech/proxy/azure/openai, please check that Azure OpenAI support external functions

from chatgpt-telegram-bot.

onchera avatar onchera commented on May 26, 2024

I changed proxy and now model supports plugins.
How can i activate them? Prompts?

from chatgpt-telegram-bot.

onchera avatar onchera commented on May 26, 2024

Maybe I'm stupid, but I

  1. clone repository
  2. install requirements
  3. input token, proxy, models
  4. edit .env
ADMIN_USER_IDS=6320848263
ENABLE_IMAGE_GENERATION=false
ENABLE_TTS_GENERATION=false
ENABLE_TRANSCRIPTION=true
OPENAI_MODEL=gpt-4-turbo
OPENAI_BASE_URL=https://jewproxy.tech/proxy/azure/openai
ASSISTANT_PROMPT="You are assistant"
STREAM=false
BOT_LANGUAGE=ru
ENABLE_FUNCTIONS=true
PLUGINS=weather, ddg_web_search, ddg_translate, crypto, autotts
SHOW_PLUGINS_USED=true
  1. launch bot
  2. PLUGINS DOESN't WORK

image_2024-03-07_010952124

from chatgpt-telegram-bot.

UJIbHYP avatar UJIbHYP commented on May 26, 2024

No plugins, no context, wtf.

Maybe I'm stupid, but I

  1. clone repository
  2. install requirements
  3. input token, proxy, models
  4. edit .env
ADMIN_USER_IDS=6320848263
ENABLE_IMAGE_GENERATION=false
ENABLE_TTS_GENERATION=false
ENABLE_TRANSCRIPTION=true
OPENAI_MODEL=gpt-4-turbo
OPENAI_BASE_URL=https://jewproxy.tech/proxy/azure/openai
ASSISTANT_PROMPT="You are assistant"
STREAM=false
BOT_LANGUAGE=ru
ENABLE_FUNCTIONS=true
PLUGINS=weather, ddg_web_search, ddg_translate, crypto, autotts
SHOW_PLUGINS_USED=true
  1. launch bot
  2. PLUGINS DOESN't WORK

image_2024-03-07_010952124

I got the same.

from chatgpt-telegram-bot.

n3d1117 avatar n3d1117 commented on May 26, 2024

Hi @onchera, can you try removing the spaces from the plugin list?

So change this:

PLUGINS=weather, ddg_web_search, ddg_translate, crypto, autotts

to this:

PLUGINS=weather,ddg_web_search,ddg_translate,crypto,autotts

from chatgpt-telegram-bot.

onchera avatar onchera commented on May 26, 2024

Hi @onchera, can you try removing the spaces from the plugin list?

So change this:

PLUGINS=weather, ddg_web_search, ddg_translate, crypto, autotts

to this:

PLUGINS=weather,ddg_web_search,ddg_translate,crypto,autotts

Yeap...

from chatgpt-telegram-bot.

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.