Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/calypso-e2e/src/lib/components/help-center.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class HelpCenterComponent {
await Promise.all( [
this.page.waitForResponse(
( response ) =>
response.url().includes( '/odie/chat/wpcom-workflow-support_chat' ) &&
response.url().includes( '/ai/chat/wpcom-workflow-support_chat' ) &&
response.status() === 200
),
sendMessageForm
Expand Down Expand Up @@ -244,7 +244,7 @@ export class HelpCenterComponent {
*/
async setOdieTestMode(): Promise< void > {
// Rewrite the Odie POST request to make sure it's in test mode.
await this.page.route( '**/odie/chat/*', async ( route, request ) => {
await this.page.route( '**/ai/chat/*', async ( route, request ) => {
const postBody = JSON.parse( request.postData() || '{}' );

// Add Test Mode to the request.
Expand Down
4 changes: 2 additions & 2 deletions packages/odie-client/src/data/use-get-odie-conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export const useGetOdieConversations = (
const response: any[] = canAccessWpcomApis()
? await wpcomRequest( {
method: 'GET',
path: `/odie/conversations/${ botSlugs }?${ queryParams }`,
path: `/ai/chats/${ botSlugs }?${ queryParams }`,
apiNamespace: 'wpcom/v2',
} )
: await apiFetch( {
path: `/help-center/odie/conversations/${ botSlugs }?${ queryParams }`,
path: `/help-center/ai/chats/${ botSlugs }?${ queryParams }`,
method: 'GET',
} );

Expand Down
4 changes: 2 additions & 2 deletions packages/odie-client/src/data/use-odie-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export const useOdieChat = (
canAccessWpcomApis()
? await wpcomRequest( {
method: 'GET',
path: `/odie/chat/${ botSlug }/${ chatId }?${ queryParams }`,
path: `/ai/chat/${ botSlug }/${ chatId }?${ queryParams }`,
apiNamespace: 'wpcom/v2',
} )
: await apiFetch( {
path: `/help-center/odie/chat/${ botSlug }/${ chatId }?${ queryParams }`,
path: `/help-center/ai/chat/${ botSlug }/${ chatId }?${ queryParams }`,
method: 'GET',
} )
) as ReturnedChat;
Expand Down
2 changes: 1 addition & 1 deletion packages/odie-client/src/data/use-send-odie-feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const useSendOdieFeedback = () => {
mutationFn: ( { messageId, ratingValue }: { messageId: number; ratingValue: number } ) => {
return wpcomRequest( {
method: 'POST',
path: `/odie/chat/${ botSlug }/${ chat.odieId }/${ messageId }/feedback`,
path: `/ai/chat/${ botSlug }/${ chat.odieId }/${ messageId }/feedback`,
apiNamespace: 'wpcom/v2',
body: { rating_value: ratingValue, ...( version && { version } ) },
} );
Expand Down
4 changes: 2 additions & 2 deletions packages/odie-client/src/data/use-send-odie-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export const useSendOdieMessage = ( signal: AbortSignal ) => {
return canAccessWpcomApis()
? wpcomRequest< ReturnedChat >( {
method: 'POST',
path: `/odie/chat/${ botSlug }${ chatIdSegment }`,
path: `/ai/chat/${ botSlug }${ chatIdSegment }`,
apiNamespace: 'wpcom/v2',
signal,
body: {
Expand All @@ -264,7 +264,7 @@ export const useSendOdieMessage = ( signal: AbortSignal ) => {
},
} )
: apiFetch< ReturnedChat >( {
path: `/help-center/odie/chat/${ botSlug }${ chatIdSegment }`,
path: `/help-center/ai/chat/${ botSlug }${ chatIdSegment }`,
method: 'POST',
signal,
data: {
Expand Down