userid and session_token
This commit is contained in:
parent
878a2100bc
commit
4f94ba1604
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue