الفريق العربي للهندسة العكسية
chat gpt api - نسخة قابلة للطباعة

+- الفريق العربي للهندسة العكسية (https://www.at4re.net/f)
+-- قسم : منتديات الهندسة العكسية - Reverse Engineering Forums (https://www.at4re.net/f/forum-4.html)
+--- قسم : الهندسة العكسية - Reverse Code Engineering (https://www.at4re.net/f/forum-19.html)
+---- قسم : الهندسة العكسية لتطبيقات الجوال - Reversing Mobile Application (https://www.at4re.net/f/forum-21.html)
+---- الموضوع : chat gpt api (/thread-4114.html)



chat gpt api - Mohamed haroon - 20-08-2024

chat gpt api تم الحصول عليها من خلال كسر android app
 
curl --location 'http://pass-gpt.nowtechai.com/api/v1/pass' \
--header 'Key: 2mb4JjabPYJw8B+p9Bq7dKfViGL5ciumrUdvxmiy0/zuXbLkJQn7Vs4xs1VO97GIlPhmQfDcDrg+vp6eI+LG1g==' \
--header 'User-Agent: Ktor client' \
--header 'Content-Type: application/json' \
--data '{"contents":[{"role":"system","content":""},{"role":"user","content":"what'\''s your gpt version."}]}'
Plain text



RE: chat gpt api - siddigss - 21-08-2024

لإثراء الموضوع، حاولت استخدام المفتاح في المنشور مع OpenAI API ولكنه لا يعمل. فيبدو أنه يستعمل API مختلفة لـ chatgpt. كود بايثون التالي يحاكي أمر curl المكتوب في المنشور، آخر عدة سطور هي معالجة يدوية لرد الـ API، ليست مثالية لكنها تؤدي الغرض.

ردّ gpt على السؤال "what\'s your gpt version." بـ "I am based on GPT-3."
 
import requests

url = 'http://pass-gpt.nowtechai.com/api/v1/pass'
headers = {'Key': '2mb4JjabPYJw8B+p9Bq7dKfViGL5ciumrUdvxmiy0/zuXbLkJQn7Vs4xs1VO97GIlPhmQfDcDrg+vp6eI+LG1g==', \
           'User-Agent': 'Ktor client', 'Content-Type': 'application/json'}
data = {"contents":[{"role":"system","content":""}, {"role":"user","content":"what's your gpt version."}]}
response = requests.post(url, headers=headers, json=data)

text_response = response.text
text_ignore_1 = 'data:{"status":"stream","content":"'
text_ignore_2 = 'data:{"status":"stop","content":"'
text_ignore_3 = '"}\n\n'

real_response = text_response.replace(text_ignore_1, '')
real_response = real_response.replace(text_ignore_2, '')
real_response = real_response.replace(text_ignore_3, '')
print(real_response)
PHP



RE: chat gpt api - Mohamed haroon - 22-08-2024

تعديل
لقد نسيت ذكر اسم التطبيق ويمكن الوصول له من الرابط (التالي)
لقد حصلت علي key اضافي بعد تثبيت التطبيق علي emulator جديد
Key: YQps3a3MnFrJMvELjbg62hdJJnIKaQQqmat4jfv1sK9fbe3iXnpxQkuXkNCWhxxWVzfRC8oviwV66cRaFROnMQ==
Plain text

يمكن الطلب من chat gpt تقمص شخصية من مسلسل مثلا من خلال كتابة ذلك في ال content
curl -i -s -k -X $'POST' \
    -H $'Key: wmypnHqQqIbBR51GoRbNPVfP+plhRIvR6O2onz1HeS/mBhNIivel16vByAXbphUCy6G0kpBE6lzdP+ZofoMALA==' -H $'TimeStamps: 1724326826355' -H $'Accept: application/json' -H $'Accept-Charset: UTF-8' -H $'User-Agent: Ktor client' -H $'Content-Type: application/json' -H $'Content-Length: 144' -H $'Host: pass-gpt.nowtechai.com' -H $'Connection: close' -H $'Accept-Encoding: gzip, deflate' \
    --data-binary $'{\"contents\":[{\"role\":\"system\",\"content\":\"Play as Walter White to answer\"},{\"role\":\"user\",\"content\":\"what is your job. (Maximum is 100 words)\"}]}' \
    $'http://pass-gpt.nowtechai.com/api/v1/pass'
Plain text

ملاحطة:- لقد اضفت key جديد