Skip to content

Commit

Permalink
Update getData.js for deprecations
Browse files Browse the repository at this point in the history
2023-08-22: Fine-tunes endpoint
On August 22nd, 2023, we announced the new fine-tuning API (/v1/fine_tuning/jobs) and that the original /v1/fine-tunes API along with legacy models (including those fine-tuned with the /v1/fine-tunes API) will be shut down on January 04, 2024. This means that models fine-tuned using the /v1/fine-tunes API will no longer be accessible and you would have to fine-tune new models with the updated endpoint and associated base models.
  • Loading branch information
eeeeeeeason authored Jan 22, 2024
1 parent cdbfdfd commit c76bd96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/api/getData.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const createTranslation = (formData, token) => {
export const createFineTune = (formData, token) => {
return axios({
method: 'post',
baseURL: `${baseUrl}/v1/fine-tunes`,
baseURL: `${baseUrl}/v1/fine_tuning/jobs/`,
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json'
Expand All @@ -206,7 +206,7 @@ export const createFineTune = (formData, token) => {
export const getFineTunesList = token => {
return axios({
method: 'get',
baseURL: `${baseUrl}/v1/fine-tunes`,
baseURL: `${baseUrl}/v1/fine_tuning/jobs/`,
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json'
Expand Down Expand Up @@ -238,7 +238,7 @@ export const getFineTunesList = token => {
export const retrieveFineTune = (fineTuneId, token) => {
return axios({
method: 'get',
baseURL: `${baseUrl}/v1/fine-tunes/` + fineTuneId,
baseURL: `${baseUrl}/v1/fine_tuning/jobs/` + fineTuneId,
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json'
Expand All @@ -254,7 +254,7 @@ export const retrieveFineTune = (fineTuneId, token) => {
export const cancelFineTune = (fineTuneId, token) => {
return axios({
method: 'post',
baseURL: `${baseUrl}/v1/fine-tunes/` + fineTuneId + '/cancel',
baseURL: `${baseUrl}/v1/fine_tuning/jobs/` + fineTuneId + '/cancel',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json'
Expand All @@ -268,7 +268,7 @@ export const cancelFineTune = (fineTuneId, token) => {
export const getFineTuneEventsList = (fineTuneId, token) => {
return axios({
method: 'get',
baseURL: `${baseUrl}/v1/fine-tunes/` + fineTuneId + '/events',
baseURL: `${baseUrl}/v1/fine_tuning/jobs/` + fineTuneId + '/events',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'multipart/form-data'
Expand Down

0 comments on commit c76bd96

Please sign in to comment.