Skip to content

Update providers.ts to work with local OPENAI providers#149

Open
pokemon9757 wants to merge 1 commit intodzhng:mainfrom
pokemon9757:patch-1
Open

Update providers.ts to work with local OPENAI providers#149
pokemon9757 wants to merge 1 commit intodzhng:mainfrom
pokemon9757:patch-1

Conversation

@pokemon9757
Copy link
Copy Markdown

Made this provider code compatible with the README instructions. Quote README: "To use local LLM, comment out OPENAI_KEY and instead uncomment OPENAI_ENDPOINT and OPENAI_MODEL" The previous version would not work if user leaves the OPEN_AI key empty OPENAI_KEY="" and attempts to use a local model (e.g., coming from LMStudio)

Made this provider code compatible with the README instructions. 
Quote README: "To use local LLM, comment out OPENAI_KEY and instead uncomment OPENAI_ENDPOINT and OPENAI_MODEL"
The previous version would not work if user leaves the OPEN_AI key empty `OPENAI_KEY=""` and attempts to use a local model (e.g., coming from LMStudio)
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

Successfully merging this pull request may close these issues.

1 participant