@ashetm/ng-openai
TypeScript icon, indicating that this package has built-in type declarations

15.0.2 • Public • Published

@ashetm/ng-openai

@ashetm/ng-openai is a wrapped library of openai for Angular.

Install

You can install it with npm:

npm install @ashetm/ng-openai

Import

You only need to import OpenaiModule.

...
import { OpenaiModule, TOpenaiConfiguration } from '@ashetm/ng-openai';
...
@NgModule({
  ...
  imports: [
    ...
    OpenaiModule.forRoot(configuration as TOpenaiConfiguration), 
    ...
  ]
  ...
})
export class AppModule { }

API

@ashetm/ng-mediastream exposes the following:

Modules

  • OpenaiModule, that needs to import in order to use the library

Services

OpenaiService

OpenaiService is a service concern all about openapi.

And for methods, they are the same methods for openai open source library.

Tokens

OPENAI_TOKEN_CONFIGURATION

OPENAI_TOKEN_CONFIGURATION is a token that provide configuration provided in OpenaiModule.forRoot static method.

Issue

LOOKING FOR MAINTAINER OR IF THERE IS AN ISSUE OR ANY IDEA TO ADD. PLEASE CREATE ISSUE IN GITHUB REPOSITORY.

Package Sidebar

Install

npm i @ashetm/ng-openai

Weekly Downloads

0

Version

15.0.2

License

none

Unpacked Size

40 kB

Total Files

23

Last publish

Collaborators

  • ashetm