@singlestore/ai
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -21,2 +21,10 @@ import { ChatCompletionMessageParam } from 'openai/resources/chat/completions'; | ||
interface EmbeddingsCreateOptions<T = any> { | ||
model: T | (string & {}); | ||
} | ||
interface Embeddings { | ||
getModels(): string[]; | ||
create<T extends Partial<EmbeddingsCreateOptions>>(input: string | string[], options?: T): Promise<number[][]>; | ||
} | ||
type OpenAIChatCompletionModel = "gpt-4o" | "gpt-4o-2024-05-13" | "gpt-4o-2024-08-06" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-turbo-preview" | "gpt-4-0125-preview" | "gpt-4-1106-preview" | "gpt-4" | "gpt-4-0613" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-instruct"; | ||
@@ -32,10 +40,2 @@ type OpenAIChatCompletionsCreateOptions = ChatCompletionCreateOptions<OpenAIChatCompletionModel> & Omit<Parameters<OpenAI["chat"]["completions"]["create"]>[0], keyof ChatCompletionCreateOptions>; | ||
interface EmbeddingsCreateOptions<T = any> { | ||
model: T | (string & {}); | ||
} | ||
interface Embeddings { | ||
getModels(): string[]; | ||
create<T extends Partial<EmbeddingsCreateOptions>>(input: string | string[], options?: T): Promise<number[][]>; | ||
} | ||
type OpenAIEmbeddingModel = "text-embedding-3-small" | "text-embedding-3-large" | "text-embedding-ada-002"; | ||
@@ -42,0 +42,0 @@ type OpenAIChatEmbeddingsCreateOptions = EmbeddingsCreateOptions<OpenAIEmbeddingModel> & Omit<Parameters<OpenAI["embeddings"]["create"]>[0], "input" | keyof EmbeddingsCreateOptions>; |
{ | ||
"name": "@singlestore/ai", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"license": "Apache-2.0", | ||
@@ -23,3 +23,4 @@ "sideEffects": false, | ||
"clean": "rm -rf dist", | ||
"dev": "tsup --watch" | ||
"dev": "tsup --watch", | ||
"lint": "eslint . " | ||
}, | ||
@@ -29,8 +30,6 @@ "devDependencies": { | ||
"@repo/typescript-config": "*", | ||
"openai": "^4.53.2", | ||
"tsup": "^8.1.0", | ||
"typescript": "^5.3.3" | ||
"typescript": "^5.5.4" | ||
}, | ||
"dependencies": { | ||
"openai": "^4.53.2" | ||
}, | ||
"engines": { | ||
@@ -51,5 +50,4 @@ "node": ">=18" | ||
"keywords": [ | ||
"singlestore", | ||
"ai" | ||
"singlestore" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4959094
0
12
25061
5
1
11
9
- Removedopenai@^4.53.2
- Removed@types/node@18.19.65(transitive)
- Removed@types/node-fetch@2.6.12(transitive)
- Removedabort-controller@3.0.0(transitive)
- Removedagentkeepalive@4.5.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedevent-target-shim@5.0.1(transitive)
- Removedform-data@4.0.1(transitive)
- Removedform-data-encoder@1.7.2(transitive)
- Removedformdata-node@4.4.1(transitive)
- Removedhumanize-ms@1.2.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedms@2.1.3(transitive)
- Removednode-domexception@1.0.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedopenai@4.73.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removedundici-types@5.26.5(transitive)
- Removedweb-streams-polyfill@4.0.0-beta.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)