1
0
Fork 0
GPT4FREE/gpt4free/cocalc/readme.md

20 lines
530 B
Markdown
Raw Normal View History

2023-04-27 23:20:34 +00:00
### Example: `cocalc` <a name="example-cocalc"></a>
```python
# import library
2023-04-29 09:25:24 +00:00
from gpt4free import cocalc
2023-04-27 23:20:34 +00:00
2023-04-29 09:25:24 +00:00
cocalc.Completion.create(prompt="How are you!", cookie_input="cookieinput") ## Tutorial
2023-04-27 23:20:34 +00:00
```
### How to grab cookie input
```js
2023-04-27 23:20:50 +00:00
// input this into ur developer tools console and the exact response u get from this u put into ur cookieInput!
2023-04-27 23:20:34 +00:00
var cookies = document.cookie.split("; ");
var cookieString = "";
for (var i = 0; i < cookies.length; i++) {
cookieString += cookies[i] + "; ";
}
console.log(cookieString);
```