Skip to content

we shouldnt allow passing an openai object in #39

Description

@paperclover

point is to abstract away the package. you shouldnt even have to think about these other packages. this is a regression from 0.4 which let you just take a base url and api key.

export interface OpenAICompletionsAdapterOptions<TModel extends string> {
  model: TModel;
  name: string;
  client: OpenAICompletionsClient; // caller passes in an `openai` instance
  parallelToolCalls?: boolean;
  supportedMimeTypes?: string[];
  pdfSupport?: OpenAICompletionsPdfSupport<TModel>;
  extraRequestBody?: OpenAICompletionsExtraRequestBody<TModel>;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions