Skip to content

Commit

Permalink
correct merge
Browse files Browse the repository at this point in the history
  • Loading branch information
marikaner committed Aug 30, 2024
1 parent f8cbfb8 commit 458cf24
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions packages/gen-ai-hub/src/orchestration/orchestration-client.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { executeRequest, CustomRequestConfig } from '@sap-ai-sdk/core';
import { pickValueIgnoreCase } from '@sap-cloud-sdk/util';
import { resolveDeployment } from '../utils/deployment-resolver.js';
import {
DeploymentIdConfiguration,
resolveDeploymentId
} from '../utils/deployment-resolver.js';
import { resolveDeploymentId } from '../utils/deployment-resolver.js';
import {
CompletionPostRequest,
CompletionPostResponse
Expand All @@ -30,32 +26,6 @@ export class OrchestrationClient {
const body = constructCompletionPostRequest(data);
deploymentId =
deploymentId ??
(
await resolveDeployment({
scenarioId: 'orchestration',
model: {
name: this.config.llmConfig.model_name,
version: this.config.llmConfig.model_version
},
resourceGroup: pickValueIgnoreCase(
requestConfig?.headers,
'ai-resource-group'
)
})
).id;
(
await resolveDeployment({
scenarioId: 'orchestration',
model: {
name: data.llmConfig.model_name,
version: data.llmConfig.model_version
},
resourceGroup: pickValueIgnoreCase(
requestConfig?.headers,
'ai-resource-group'
)
})
).id;
(await resolveDeploymentId({
scenarioId: 'orchestration',
model: {
Expand Down

0 comments on commit 458cf24

Please sign in to comment.