Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling and using plugins #537

Open
onchera opened this issue Feb 22, 2024 · 16 comments
Open

Enabling and using plugins #537

onchera opened this issue Feb 22, 2024 · 16 comments

Comments

@onchera
Copy link

onchera commented Feb 22, 2024

Hi, I wanna use plugins, but cannot. I added strings in .env

ENABLE_FUNCTIONS=true PLUGINS=weather,ddg_web_search,ddg_translate,crypto,autotts SHOW_PLUGINS_USED=true

But it doesn't take a changes - bot answers as offline.

@yurnov
Copy link
Contributor

yurnov commented Feb 26, 2024

Hi @onchera,

did you try to add it as separate lines?

@onchera
Copy link
Author

onchera commented Feb 28, 2024

ENABLE_FUNCTIONS=true
PLUGINS=weather,ddg_web_search,ddg_translate,crypto,autotts
SHOW_PLUGINS_USED=true

I got it.

@onchera
Copy link
Author

onchera commented Feb 28, 2024

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

@yurnov
Copy link
Contributor

yurnov commented Feb 28, 2024

Starting from here and here

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

@onchera
Copy link
Author

onchera commented Mar 3, 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

@yurnov
Copy link
Contributor

yurnov commented Mar 3, 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

@onchera
Copy link
Author

onchera commented Mar 3, 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

@onchera
Copy link
Author

onchera commented Mar 3, 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

@yurnov
Copy link
Contributor

yurnov commented Mar 4, 2024

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

@UJIbHYP
Copy link

UJIbHYP commented Mar 4, 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.

@onchera
Copy link
Author

onchera commented Mar 5, 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

@onchera
Copy link
Author

onchera commented Mar 6, 2024

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

@onchera
Copy link
Author

onchera commented Mar 6, 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

@UJIbHYP
Copy link

UJIbHYP commented Mar 6, 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.

@n3d1117
Copy link
Owner

n3d1117 commented Mar 11, 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

@onchera
Copy link
Author

onchera commented Mar 12, 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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants