mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 08:29:30 -04:00
userid and session_token
This commit is contained in:
parent
878a2100bc
commit
4f94ba1604
@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
more gpt4 models in `/testing/ora_gpt4.py`
|
more gpt4 models in `/testing/ora_gpt4.py`
|
||||||
|
|
||||||
|
find the userid by visiting https://ora.sh/api/auth/session ( must be logged in on the site )
|
||||||
|
and session_token in the cookies, it should be: __Secure-next-auth.session-token
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# if using CompletionModel.load set these
|
# if using CompletionModel.load set these
|
||||||
ora.user_id = '...'
|
ora.user_id = '...'
|
||||||
@ -43,4 +46,4 @@ while True:
|
|||||||
conversationId = init.id)
|
conversationId = init.id)
|
||||||
|
|
||||||
print(response.completion.choices[0].text)
|
print(response.completion.choices[0].text)
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user