father-bot / chatgpt_telegram_bot

💬 Telegram bot with ChatGPT, Python-based, using OpenAI's API.
https://t.me/chatgpt_karfly_bot
MIT License
5.18k stars 1.81k forks source link

openai_api_base support #419

Closed C018 closed 10 months ago

C018 commented 10 months ago

Can openai_api_base support https://xx.com? After customization, it reported an error: Something went wrong during completion. Reason: Invalid response object from API: '404 Not Found' (HTTP response code was 404).

MapoMagpie commented 10 months ago

openai_api_base example: http://example.com/v1, the end without '/'

neowisard commented 10 months ago

without openai_api_base: http://192.168.0.55:5000/v1