Socket
Socket
Sign inDemoInstall

@ashetm/ng-openai

Package Overview
Dependencies
14
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ashetm/ng-openai

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


Version published
Weekly downloads
18
increased by20%
Maintainers
1
Install size
121 kB
Created
Weekly downloads
 

Readme

Source

@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.

Keywords

FAQs

Last updated on 05 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc