Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qcobjects-azure-openai-api

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qcobjects-azure-openai-api

QCObjects OpenAI API Handler

  • 1.0.18
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-82.35%
Maintainers
0
Weekly downloads
 
Created
Source

QCObjects OpenAI API

Install

npm i qcobjects-azure-openai-api

Setup in your config.json

"backend":{
    "routes":[
        {
          "name":"QCObjects Open AI API Proxy",
          "description":"This endpoint returns same response like if you were calling to OpenAI API",
          "path": "^/api/openai$",
          "microservice":"qcobjects-azure-openai-api",
          "headers": {
            "content-type": "text/html; charset=utf-8"
          },
          "responseHeaders":{
          },
          "cors":{
            "allow_origins":"*"
          }
        }
    ]
}

The way of using it

import {chatbotComponent} from "qcobjects-azure-openai-api/components";

document.addEventListener("DOMContentLoaded", ()=>{
    document.body.append(chatbotComponent.body);
});

# Visit

Visit https://localhost:port/api/openai

Create your own microservice

To make your own microservice, you can generate it with QCObjects CLI using this package as template:

qcobjects create --custom=qcobjects-azure-openai-api myown-handler-microservice

Keywords

FAQs

Package last updated on 12 Oct 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc