Skip to content

Commit

Permalink
feat: add missing file
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
  • Loading branch information
SuZhou-Joe committed Dec 1, 2023
1 parent 1dd7445 commit 01f8c99
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/services/chat/olly_chat_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ApiResponse } from '@opensearch-project/opensearch';
import { RequestHandlerContext } from '../../../../../src/core/server';
import { IMessage, IInput } from '../../../common/types/chat_saved_object_attributes';
import { ChatService } from './chat_service';
import { ML_COMMONS_BASE_API } from '../../olly/models/constants';
import { ML_COMMONS_BASE_API } from '../../utils/constants';

const MEMORY_ID_FIELD = 'memory_id';

Expand Down
2 changes: 1 addition & 1 deletion server/services/storage/agent_framework_storage_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { GetSessionsSchema } from '../../routes/chat_routes';
import { StorageService } from './storage_service';
import { MessageParser } from '../../types';
import { MessageParserRunner } from '../../utils/message_parser_runner';
import { ML_COMMONS_BASE_API } from '../../olly/models/constants';
import { ML_COMMONS_BASE_API } from '../../utils/constants';

export interface SessionOptResponse {
success: boolean;
Expand Down
6 changes: 6 additions & 0 deletions server/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

export const ML_COMMONS_BASE_API = '/_plugins/_ml';

0 comments on commit 01f8c99

Please sign in to comment.