Screenshots of chatGPT
Function chatGP ($ message)
Your OpenAI API Key
$apiKey = “
The endpoint for the OpenAI Davinci API
$endpoint = “https://api.openai.com/v1/completions”;
The request body, containing the parameters for your request
$requestBody = [
“model” => “text-davinci-003”,
“prompt” = “$ message”
“Temperature” = 0.1
“max_tokens” = 500
“top_p” = 1
“frequency_penalty” = 0.0
“presence_penalty” = 0.0
and the
Encode the request body as JSON
$requestBodyJson = json_encode ($requestBody)
Initialize the cURL session
$curl = curl_init
Set the cURL options
curl_setopt ($curl, CURLOPT_URL, $endpoint)
curl_setopt($curl, CURLOPT_HTTPHEADER, [
“Content-Type: application/json”
Authorization: Bearerby $apiKey
and the
curl_setopt ($curl, CURLOPT_POST, true)
curl_setopt($curl, CURLOPT_POSTFIELDS, $requestBodyJson);
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, true)
Make the request
$response = curl_exec ($curl)
Check for errors
if (curl_errno($curl)) {
echo “cURL Error: ”curl_error ($ curl )
the exit;
The
What would be the answer when sending a request?
-
2 days120 USD
1120 33 0 1 2 days120 USDHello to you,
My name is John, and we are ready to take your project. With 5 years of experience in web development, we will ensure quality and efficient performance of tasks.
Let’s discuss the details of your project. We are committed to the successful implementation of your ideas.
Thank you for the opportunity to cooperate,
by John
-
2 days35 USD
401 25 0 2 days35 USDHello to you! I can do it, I have my work on this topic. Write the details.
-
3 days30 USD
122 3 days30 USDIt can be done in an hour and 30 USD, a great experience of working with API and dozens of implemented projects
-
1 day60 USD
1602 31 1 1 day60 USDGood day, I’m doing a project, my skills work in web programming 6 years
Current freelance projects in the category PHP
Development of a WordPress website
23 USD
We are looking for a contractor to develop a custom website on WordPress for a jewelry store. The first stage will be a consultation. Content Management Systems, PHP ∙ 22 hours 49 minutes back ∙ 58 proposals |
The WooCommerce cart (WordPress) is broken — it does not add products and the cart page does not open.On the website of the online store https://www.dobryi-gospodar.com/ (WordPress + WooCommerce), the checkout function has completely stopped working. When clicking the "Add to cart" button (both in the product card and in the catalog), a long loading process begins (the indicator… Content Management Systems, PHP ∙ 1 day back ∙ 54 proposals |
Product search function by imageIt is necessary to develop and integrate a product search function by image on the website.What needs to be implementedA "Search by Photo" button on the website.Image upload by the user: JPG.Search for visually similar products in the catalog.Display results in the form of… PHP, Web Programming ∙ 1 day 8 hours back ∙ 43 proposals |
Parser expireddomains.net
113 USD
A parser is needed for expireddomains.net. You need to log in to the site first; the problem is that it blocks the IP when trying to parse data. You need to parse thematic domains based on a list of keywords. If you are not confident in your abilities, please do not write. PHP, Web Programming ∙ 3 days 6 hours back ∙ 51 proposals |
Integration of payment service with Sales Force
70 USD
There is a payment system widget on the site that needs to be integrated with Salesforce so that all required parameters are visible on the Salesforce side. It needs to be done in such a way that all payments and subscriptions are controlled through Salesforce. PHP, Web Programming ∙ 3 days 10 hours back ∙ 41 proposals |