Skip to content

Commit

Permalink
Merge pull request #99 from eeeeeeeason/main
Browse files Browse the repository at this point in the history
Update getData.js for deprecations
  • Loading branch information
202252197 authored Mar 4, 2024
2 parents 8eaf5e6 + 547a1b7 commit 63358a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
registry="https://registry.npm.taobao.org/"
registry="https://registry.npmmirror.com/"
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

1 comment on commit 63358a6

@4everland
Copy link

@4everland 4everland bot commented on 63358a6 Mar 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following parameters

parameters Value
IPFS CID bafybeictu7ntezezsgulkwtfnjobvuzmqcetzlnse2mlup2e2uok3rdsla
Assigned domain https://chatgpt_jcm-hhzvvtlf-202252197.4everland.app
https://chatgpt_jcm-92.4everland.app
Custom domain

Please sign in to comment.