#Request: POST /v1/chat/completions 1 messages (stream-disabled)

1 messages ยท Page 1 of 1 (latest)

visual wren
#

What is the problem???

fast yoke
#

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)

visual wren
#

So, you're using The selfhosted API?

proven bone
#

yes

proven bone
visual wren
#

The selfhosted API doesn't work and needs to be updated.

proven bone
#

ok so How much time to take it upgrade?

visual wren
#

I don't know.

proven bone
#

okey

visual wren
#

For now, you can use the Reverse Proxy API.

proven bone
#

what is this?