#Request: POST /v1/chat/completions 1 messages (stream-disabled)
1 messages ยท Page 1 of 1 (latest)
im trying to run this code:
print(completion.choices[0].message.content)
I am trying to run this code, but I always get this error:
TypeError: 'NoneType' object is not subscriptable
I am using the code from github
model="gpt-3.5-turbo",
8 messages=[
9 {"role": "user", "content": "what is python"},
10 ],
11 )
---> 13 print(completion.choices[0].message.content)
So, you're using The selfhosted API?
yes
same error
The selfhosted API doesn't work and needs to be updated.
ok so How much time to take it upgrade?
I don't know.
okey
For now, you can use the Reverse Proxy API.
what is this?