@imaginary-dev/util
Advanced tools
Comparing version 0.0.3 to 0.0.4
import { JSONSchema7 } from "json-schema"; | ||
import { CreateCompletionRequest } from "openai"; | ||
import { CreateCompletionRequest, CreateChatCompletionRequest } from "openai"; | ||
export interface ImaginaryFunctionDefinition { | ||
@@ -16,3 +16,3 @@ funcName: string; | ||
export interface ServiceParameters { | ||
openai?: Partial<Omit<CreateCompletionRequest, "prompt">>; | ||
openai?: Partial<Omit<CreateCompletionRequest & CreateChatCompletionRequest, "prompt">>; | ||
} | ||
@@ -19,0 +19,0 @@ export declare const AI_SERVICES: (keyof ServiceParameters)[]; |
@@ -30,2 +30,5 @@ "use strict"; | ||
} | ||
if (jsonSchema.type === "integer") { | ||
return "number"; | ||
} | ||
// recursive types | ||
@@ -32,0 +35,0 @@ if (jsonSchema.type === "array" && typeof jsonSchema.items === "object") { |
{ | ||
"name": "@imaginary-dev/util", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
"main": "dist/util/src/index.js", | ||
"scripts": { | ||
"build": "tsc" | ||
"build": "tsc", | ||
"test": "jest", | ||
"coverage": "jest --coverage" | ||
}, | ||
"author": "Sasha Aickin", | ||
"license": "UNLICENSED", | ||
"license": "MIT", | ||
"dependencies": { | ||
@@ -17,6 +19,3 @@ "@microsoft/tsdoc": "^0.14.2", | ||
"@types/object-hash": "^3.0.2" | ||
}, | ||
"publishConfig": { | ||
"access": "restricted" | ||
} | ||
} |
import { JSONSchema7 } from "json-schema"; | ||
import objectHash from "object-hash"; | ||
import { CreateCompletionRequest } from "openai"; | ||
import { CreateCompletionRequest, CreateChatCompletionRequest } from "openai"; | ||
export interface ImaginaryFunctionDefinition { | ||
@@ -15,3 +15,5 @@ funcName: string; | ||
export interface ServiceParameters { | ||
openai?: Partial<Omit<CreateCompletionRequest, "prompt">>; | ||
openai?: Partial< | ||
Omit<CreateCompletionRequest & CreateChatCompletionRequest, "prompt"> | ||
>; | ||
} | ||
@@ -18,0 +20,0 @@ |
@@ -41,2 +41,5 @@ import { JSONSchema7 } from "json-schema"; | ||
} | ||
if (jsonSchema.type === "integer") { | ||
return "number"; | ||
} | ||
@@ -43,0 +46,0 @@ // recursive types |
{ | ||
"extends": "../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"declaration": true | ||
"outDir": "dist" | ||
}, | ||
@@ -7,0 +6,0 @@ "files": ["src/index.ts"], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
39416
27
0
690
1
196