Skip to main content

2023-06-20

Endpoint Recreation Required for OpenAI

If you are using OpenAI's endpoint, we would like to inform you that endpoint recreation will be necessary.

Functionality Changes

  • The endpoint method will be changed from GET to POST.
  • There will be two separate endpoints: OpenAI::chat for generating answers without referencing content, and OpenAI::chat_contents_search for generating answers while referencing content.

Impact on Customers

  • The old state endpoint will become unavailable after your version has been updated.
  • If you are using OpenAI's endpoint, you will need to delete the respective endpoint and recreate it.
caution

The exact timing for the Stable version release cannot be specified by the customers. Please change to the version (beta or RC version) where the desired improvements are reflected at your preferred timing, and kindly recreate the endpoint and make modifications to the front end.

Frontend Modification Examples

React Project

Before Modification

    try {
// get data
const response = await fetch(
`https://****.g.kuroco.app/rcms-api/1/chat?text=${query}`
);
} catch (error) {
// error handling
}

After Modification

    try {
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ text: newMessage }),
};
// get data
const response = await fetch(
`https://****.g.kuroco.app/rcms-api/1/chat`, options
);
} catch (error) {
// error handling
}

Vue Project (using axios)

Before Modification

    try {
// get data
const response = await this.axios.get(`https://****.g.kuroco.app/rcms-api/1/chat?text=${query}`);
} catch (error) {
// error handling
}

After Modification

    try {
const params = {
text: newMessage
}
// get data
const response = await this.$axios.$post(
`https://****.g.kuroco.app/rcms-api/1/chat`,
params
);
} catch (error) {
// error handling
}

Scheduled Release Date

RC: June 27, 2023 (Tuesday) Stable: Mid-July

Contact

If you have any questions regarding this matter, please feel free to contact Kuroco Support.


Support

If you have any other questions, please contact us or check out Our Slack Community.