Skip to content

Commit

Permalink
fix: embeddings and prompts completion
Browse files Browse the repository at this point in the history
  • Loading branch information
noble-varghese committed Dec 6, 2023
1 parent 824b753 commit 56c853b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/apis/embeddings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ export interface EmbeddingsBody extends ModelParams {
export type EmbeddingsResponse = Record<string, any> & APIResponseType

export class Embeddings extends ApiResource {
completions: EmbeddingsCompletions = new EmbeddingsCompletions(this.client);
}

export class EmbeddingsCompletions extends ApiResource {
create(
_body: EmbeddingsBody,
params?: ApiClientInterface,
Expand Down
6 changes: 6 additions & 0 deletions src/apis/generations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ export interface PromptsCreateNonStreaming extends PromptBodyBase {
export type PromptsCreateParams = PromptsCreateNonStreaming | PromptsCreateStreaming

type PromptsResponse = Record<string, any> & APIResponseType;

export class Prompt extends ApiResource {
completions: PromptCompletions = new PromptCompletions(this.client);
}


export class PromptCompletions extends ApiResource {
create(
_body: PromptsCreateNonStreaming,
params?: ApiClientInterface,
Expand Down

0 comments on commit 56c853b

Please sign in to comment.