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

openai-streams

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openai-streams - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

dist/lib/pinned.d.ts

4

dist/lib/types.d.ts

@@ -1,2 +0,2 @@

import type { CreateCompletionRequest, CreateEditRequest, CreateEmbeddingRequest, CreateFineTuneRequest, CreateImageRequest } from "openai";
import type { CreateCompletionRequest, CreateEditRequest, CreateEmbeddingRequest, CreateFineTuneRequest, CreateImageRequest } from "./pinned";
export type StreamMode = "raw" | "tokens";

@@ -6,2 +6,2 @@ export type OpenAIAPIEndpoint = "completions" | "edits" | "embeddings" | "images" | "fine-tunes";

export type OpenAIAPI = <T extends OpenAIAPIEndpoint>(endpoint: T, args: OpenAICreateArgs<T>, mode?: StreamMode) => Promise<ReadableStream<Uint8Array>>;
export type { CreateCompletionRequest, CreateEditRequest, CreateEmbeddingRequest, CreateFineTuneRequest, CreateImageRequest, } from "openai";
export * from "./pinned";
{
"name": "openai-streams",
"description": "Streams-first OpenAI API client, written in TypeScript.",
"version": "1.0.14",
"version": "1.0.15",
"license": "MIT",

@@ -37,3 +37,2 @@ "type": "module",

"eslint": "^8.34.0",
"openai": "^3.1.0",
"typedoc": "^0.23.25",

@@ -49,3 +48,3 @@ "typescript": "^4.9.5"

"openai",
"openai-ts",
"typescript",
"streams",

@@ -52,0 +51,0 @@ "gpt-3"

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