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

how to use gpt-4? #40

Closed
SimonB97 opened this issue Apr 16, 2023 · 3 comments
Closed

how to use gpt-4? #40

SimonB97 opened this issue Apr 16, 2023 · 3 comments
Labels
enhancement New feature or request roadmap

Comments

@SimonB97
Copy link

Hi, nice work!

sadly however, i've not been able to change the model to gpt-4..
if i change this line like so in the llm.py

llm_predictor = LLMPredictor(llm=ChatOpenAI(
    temperature=0.2, model_name="gpt-4"))

i am seeing this error in the interface JSON.parse: unexpected character at line 1 column 1 of the JSON data.
and this in the shell

error - FetchError: request to http://127.0.0.1:5000/upload failed, reason: connect ECONNREFUSED 127.0.0.1:5000
    at ClientRequest.<anonymous> (file:///C:/Users/sbene/Projects/ChatFiles-main/chatfiles-ui/node_modules/node-fetch/src/index.js:108:11)
    at ClientRequest.emit (node:events:525:35)
    at Socket.socketErrorListener (node:_http_client:494:9)
    at Socket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED',
  erroredSysCall: 'connect',
  page: '/api/upload'
}
@guangzhengli
Copy link
Owner

Currently, the llama index can support GPT-4. This error message does not seem to be caused by GPT-4. Can you provide more detailed log information? I do not currently have an account for GPT-4, so I am unable to test it. Apologies for any inconvenience.

@guangzhengli
Copy link
Owner

We will support multi OpenAI model versions soon.

@guangzhengli
Copy link
Owner

GPT-4 is already supported now !! #97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request roadmap
Projects
Status: Done
Development

No branches or pull requests

2 participants