15.0.2 • Published 3 years ago
@ashetm/ng-openai v15.0.2
@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-openaiImport
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.