Giter VIP home page Giter VIP logo

Comments (3)

Jipok avatar Jipok commented on June 12, 2024

Use `qutes` for logs, without it hard to read.
Openai does not officially support work from Russia. Just a small flaw that until recently the API was accessible from Russian IPs, now it has been fixed. So you'll have to use a proxy. This is easy to do by adding a line like this to env: OPENAI_PROXY=http://127.0.0.1:25345

from chatgpt-telegram-bot.

ilyavpro avatar ilyavpro commented on June 12, 2024

Use qutes for logs, without it hard to read. Openai does not officially support work from Russia. Just a small flaw that until recently the API was accessible from Russian IPs, now it has been fixed. So you'll have to use a proxy. This is easy to do by adding a line like this to env: OPENAI_PROXY=http://127.0.0.1:25345

Good afternoon! Can you please help if it's not too much trouble. I installed everything according to the manual before step 4 (python bot/main.py ). I introduced telegram and openai APIs into env, and also installed (OPENAI_PROXY=http://127.0.0.1:25345). However, I still get a blocking message because my server is located in Russia. Could you tell me if I should create my proxy in some other way? Do I need to follow the steps with Docker Compose from the readme? I am not well versed in the topic of network connections, and I could not find an exhaustive answer in the discussion section. Thanks!

from chatgpt-telegram-bot.

Jipok avatar Jipok commented on June 12, 2024

OPENAI_PROXY=http://127.0.0.1:25345/ это конкретный пример и если у тебя локально не запущено что-то на 25345 порту, что-то что предоставляет http прокси на зарубежный сервер, то толку от этой опции нет.
Тебе нужен прокси через который будет доступен OpenAI. Т.е. не российский сервер или vpn.
Ну или изначально запускать бота на сервере не из России.
Я использую опцию OPENAI_PROXY и утилиту https://github.com/pufferffish/wireproxy чтобы пробросить только запросы к OpenAI через мой основной WireGuard VPN

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.