Skip to content

Commit

Permalink
lint -_-
Browse files Browse the repository at this point in the history
  • Loading branch information
shibeshduw committed Oct 9, 2024
1 parent f319f7f commit 9be54c8
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 11 deletions.
6 changes: 3 additions & 3 deletions sample-code/src/ai-api/deployment-api.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {
import { DeploymentApi } from '@sap-ai-sdk/ai-api';
import type {
AiDeploymentCreationResponse,
AiDeploymentDeletionResponse,
AiDeploymentList,
AiDeploymentModificationResponse,
AiDeploymentResponseWithDetails,
DeploymentApi
AiDeploymentResponseWithDetails
} from '@sap-ai-sdk/ai-api';

/**
Expand Down
3 changes: 2 additions & 1 deletion sample-code/src/ai-api/scenario-api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ScenarioApi, AiScenarioList, AiModelList } from '@sap-ai-sdk/ai-api';
import { ScenarioApi } from '@sap-ai-sdk/ai-api';
import type { AiScenarioList, AiModelList } from '@sap-ai-sdk/ai-api';

/**
* Get all scenarios.
Expand Down
7 changes: 6 additions & 1 deletion sample-code/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@ export {
createDeployment,
stopDeployment,
deleteDeployment
// eslint-disable-next-line import/no-internal-modules
} from './ai-api/deployment-api.js';
export { getScenarios, getModelsInScenario } from './ai-api/scenario-api.js';
export {
getScenarios,
getModelsInScenario
// eslint-disable-next-line import/no-internal-modules
} from './ai-api/scenario-api.js';
13 changes: 10 additions & 3 deletions sample-code/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable no-console */
import express from 'express';
import { AiApiError } from '@sap-ai-sdk/ai-api';
import {
chatCompletion,
computeEmbedding
Expand All @@ -13,13 +12,21 @@ import {
orchestrationOutputFiltering,
orchestrationRequestConfig
} from './orchestration.js';
import { getDeployments, createDeployment } from './ai-api/deployment-api.js';
import { getModelsInScenario } from './ai-api/scenario-api.js';
import {
getDeployments,
createDeployment
// eslint-disable-next-line import/no-internal-modules
} from './ai-api/deployment-api.js';
import {
getModelsInScenario
// eslint-disable-next-line import/no-internal-modules
} from './ai-api/scenario-api.js';
import {
invokeChain,
invokeRagChain,
invoke
} from './langchain-azure-openai.js';
import type { AiApiError } from '@sap-ai-sdk/ai-api';
import type { OrchestrationResponse } from '@sap-ai-sdk/orchestration';

const app = express();
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e-tests/src/deployment-api.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AiApiError, AiDeploymentList } from '@sap-ai-sdk/ai-api';
import {
getDeployment,
getDeployments,
Expand All @@ -12,6 +11,7 @@ import {
resourceGroup,
waitForDeploymentToReachStatus
} from './utils/ai-api-utils.js';
import type { AiApiError, AiDeploymentList } from '@sap-ai-sdk/ai-api';

loadEnv();

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e-tests/src/utils/ai-api-utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import retry from 'async-retry';
import { AiDeployment } from '@sap-ai-sdk/ai-api';
import { getDeployment } from '@sap-ai-sdk/sample-code';
import type { AiDeployment } from '@sap-ai-sdk/ai-api';

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e-tests/src/utils/cleanup-deployments.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createLogger } from '@sap-cloud-sdk/util';
import { AiApiError } from '@sap-ai-sdk/ai-api';
import {
deleteDeployment,
getDeployments,
Expand All @@ -10,6 +9,7 @@ import {
resourceGroup,
waitForDeploymentToReachStatus
} from './ai-api-utils.js';
import type { AiApiError } from '@sap-ai-sdk/ai-api';

loadEnv();

Expand Down

0 comments on commit 9be54c8

Please sign in to comment.