Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: LLM Studio does not connect #807

Closed
xcytxs opened this issue Mar 28, 2024 · 3 comments
Closed

[Bug]: LLM Studio does not connect #807

xcytxs opened this issue Mar 28, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@xcytxs
Copy link

xcytxs commented Mar 28, 2024

Version

VisualStudio Code extension

Operating System

Windows 11

What happened?

By changing the endpoint and api key from Openai to LLmStudio:

if using

OPENAI_ENDPOINT=http://localhost:1234/v1

There was a problem with request to openai API:
string indices must be integers, not 'str'

It is not the one to use but just to troubleshoot i used this to see what happened

OPENAI_ENDPOINT=http://localhost:1234/v1/chat/completions

2024-03-28 06:21:00,853 [llm_connection.py:411 - stream_gpt_completion() ] INFO: > Request model: gpt-4-turbo-preview
2024-03-28 06:21:00,872 [llm_connection.py:468 - stream_gpt_completion() ] INFO: problem with request (status 500): {"error":"Model with key 'gpt-4-turbo-preview' not loaded."}
2024-03-28 06:21:00,872 [llm_connection.py:274 -              wrapper() ] ERROR: There was a problem with request to openai API: API responded with status code: 500. Request token size: 23 tokens. Response text: {"error":"Model with key 'gpt-4-turbo-preview' not loaded."}
@xcytxs xcytxs added the bug Something isn't working label Mar 28, 2024
@juxstin1
Copy link

juxstin1 commented Apr 2, 2024

Try changing endpoint from openai to lmstudio, pre sure its a new update

ENDPOINT=lm-studio

@catarino
Copy link

catarino commented Apr 4, 2024

You have to change the following lines in the .env file

OPENAI_ENDPOINT=http://localhost:1234/v1/chat/completions
OPENAI_API_KEY=lm-studio

(Replace lm-studio with the key you have setup in LM Studio)

@techjeylabs
Copy link
Collaborator

solved, therefore closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants