Skip to content

Commit

Permalink
index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
deekshas8 committed Jul 22, 2024
1 parent 11f02c7 commit 6d50614
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
5 changes: 4 additions & 1 deletion packages/gen-ai-hub/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ export { CustomRequestConfig, BaseLlmParameters } from './core/index.js';
export {
GenAiHubClient,
GenAiHubCompletionParameters,
CompletionPostResponse
GenAiHubCompletionResponse,
PromptOptions,
LlmConfig,
ChatMessages
} from './orchestration/index.js';
1 change: 1 addition & 0 deletions packages/gen-ai-hub/src/orchestration/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './api/index.js';
export * from './orchestration-client.js';
export * from './orchestration-types.js';
4 changes: 2 additions & 2 deletions packages/gen-ai-hub/src/orchestration/orchestration-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { executeRequest, CustomRequestConfig } from '../core/index.js';
import { CompletionPostRequest } from './api/schema/index.js';
import {
GenAiHubCompletionParameters,
GenAiHubCompletionPostResponse
GenAiHubCompletionResponse
} from './orchestration-types.js';

/**
Expand All @@ -18,7 +18,7 @@ export class GenAiHubClient {
async chatCompletion(
data: GenAiHubCompletionParameters,
requestConfig?: CustomRequestConfig
): Promise<GenAiHubCompletionPostResponse> {
): Promise<GenAiHubCompletionResponse> {
const dataWithInputParams = {
deploymentConfiguration: data.deploymentConfiguration,
...constructCompletionPostRequest(data)
Expand Down
8 changes: 4 additions & 4 deletions packages/gen-ai-hub/src/orchestration/orchestration-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export type GenAiHubCompletionParameters = BaseLlmParameters &
OrchestrationCompletionParameters;

/**
* Response o for GenAI hub chat completion.
* Response for GenAI hub chat completion.
*/
export type GenAiHubCompletionPostResponse = CompletionPostResponse;
export type GenAiHubCompletionResponse = CompletionPostResponse;
/**
* Prompt object builder.
* Prompt Options.
*/
export interface PromptOptions {
/**
Expand All @@ -29,7 +29,7 @@ export interface PromptOptions {
*/
template: ChatMessages;
/**
* Template.
* Template Parameters.
*/
template_params?: Record<string, InputParamsEntry>;
}
Expand Down

0 comments on commit 6d50614

Please sign in to comment.