Open Lachine1 opened 1 year ago
I don't undestand
I don't undestand
import openai openai.api_base = "https://example.api.com/"
I see, I'll look into adding that
agreed, there are openai alternatives which use the same url structure as openai so there could be a commented out setting in the settings.ini file to enable a custom base url.
# Allows use of custom base urls.
# BaseURL = https://api.openai.com/v1
or something like that
Just so you know though, the script uses the OpenAI python package, not URL endpoints directly. So might not be possible in the current state if the goal is to use a different service altogether.
Should work if just changing the url base to use an api gateway or something.
you should use dall-e for image gen too
Just so you know though, the script uses the OpenAI python package, not URL endpoints directly. So might not be possible in the current state if the goal is to use a different service altogether.
import openai
openai.api_key = 'catto_key_************************'
openai.api_base = 'https://api.cattto.repl.co/v1'
(code stolen from a chatgpt alternative but yeah)
for openai btw