Skip to content

Commit

Permalink
Odysseus: Change endpoint to hit newer /odie (#79587)
Browse files Browse the repository at this point in the history
  • Loading branch information
dereksmart authored and timur987 committed Jul 20, 2023
1 parent 1718edb commit 92d9839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/odysseus/query/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useOdysseusAssistantContext } from '../context';
import type { Chat, Message, Context } from '../types';

function odysseusSendMessage( messages: Message[], context: Context, chat_id?: string | null ) {
const path = `/odysseus/send_message`;
const path = `/odie/send_message`;
return wpcom.req.post( {
path,
apiNamespace: 'wpcom/v2',
Expand Down Expand Up @@ -37,7 +37,7 @@ export const useOddyseusSendMessage = (): UseMutationResult<
// TODO: We will add lately a clear chat to forget the session

const odysseusGetChat = ( chat_id: string | null ) => {
const path = `/odysseus/get_chat/${ chat_id }`;
const path = `/odie/get_chat/${ chat_id }`;
return wpcom.req.get( {
path,
apiNamespace: 'wpcom/v2',
Expand Down

0 comments on commit 92d9839

Please sign in to comment.