PHP Script Modification - Add an Additional Replicate API Request

Job ID: 38057075

Budget: $35 – $40 USD

Project Deadline: 1 Day
Project Budget: $40
Project Type: PHP (8.2 and above)
Server Type: Linux Ubuntu

Project Overview:

We have an existing PHP script that calls the OpenAI API & outputs the decoded JSON response.

We want to add Replicate API (https://replicate.com/meta/meta-llama-3-70b-instruct/api) to use the meta-llama-3-70b model & add a flag to the code to allow us to choose whether we want the PHP script to use OpenAI or Llama 3 (70B).

The output format from Replicate API must match the OpenAI API response

Reference File: https://replicate.com/meta/meta-llama-3-70b-instruct/api

5* FEEDBACK WILL BE LEFT FOR YOU
Related categories: PHP Linux Ubuntu