Closed iandol closed 7 months ago
This is already in a local change. It can be made much simpler, only one line is needed:
const model = envVar("chatgpt_model_override") ? envVar("chatgpt_model_override") : envVar("gpt_model")
Please don’t change variable and argument names.
Try this version.
OK, I'll close this pull request (I don't code in javascript, hence my clunky code ;-)
OK, I'll close this pull request (I don't code in javascript, hence my clunky code ;-)
@vitorgalvao -- this is an error in your current test version right (line 200 of chatgpt)?
const apiEndpoint = envVar("dalle_api_endpoint") || "https://api.openai.com"
Yes, that has been fixed and answered in the forum post.
A user can add a
chatgpt_custom_model
env variable and this will be passed to to the startstream function, so now both api and model can be customised for use with local and online alternatives to OpenAI