t.me/xtekky commited on
Commit
d60d6fa
1 Parent(s): 0def873

play.vercel.ai

Browse files
testing/phind_test.py CHANGED
@@ -1,7 +1,7 @@
1
  import phind
2
 
3
  # set cf_clearance cookie ( not needed at the moment)
4
- phind.cf_clearance = ''
5
  phind.user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36'
6
 
7
  prompt = 'hello world'
 
1
  import phind
2
 
3
  # set cf_clearance cookie ( not needed at the moment)
4
+ phind.cf_clearance = 'MDzwnr3ZWk_ap8u.iwwMR5F3WccfOkhUy_zGNDpcF3s-1682497341-0-160'
5
  phind.user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36'
6
 
7
  prompt = 'hello world'
you_test.py → testing/you_test.py RENAMED
File without changes
unfinished/vercelai/v2.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+
3
+
4
+ token = requests.get('https://play.vercel.ai/openai.jpeg', headers={
5
+ 'authority': 'play.vercel.ai',
6
+ 'accept-language': 'en,fr-FR;q=0.9,fr;q=0.8,es-ES;q=0.7,es;q=0.6,en-US;q=0.5,am;q=0.4,de;q=0.3',
7
+ 'referer': 'https://play.vercel.ai/',
8
+ 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36'}).text + '.'
9
+
10
+ headers = {
11
+ 'authority': 'play.vercel.ai',
12
+ 'custom-encoding': token,
13
+ 'origin': 'https://play.vercel.ai',
14
+ 'referer': 'https://play.vercel.ai/',
15
+ 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36'
16
+ }
17
+
18
+ for chunk in requests.post('https://play.vercel.ai/api/generate', headers=headers, stream = True, json = {
19
+ 'prompt': 'hi',
20
+ 'model': 'openai:gpt-3.5-turbo',
21
+ 'temperature': 0.7,
22
+ 'maxTokens': 200,
23
+ 'topK': 1,
24
+ 'topP': 1,
25
+ 'frequencyPenalty': 1,
26
+ 'presencePenalty': 1,
27
+ 'stopSequences': []}).iter_lines():
28
+
29
+ print(chunk)
v2.py DELETED
File without changes