@memberjunction/ai-openai
Advanced tools
Comparing version 0.9.15 to 0.9.16
@@ -1,2 +0,2 @@ | ||
import { BaseLLM, ChatMessage, ChatParams, ChatResult, ClassifyParams, ClassifyResult, SummarizeParams, SummarizeResult } from "@memberjunction/ai"; | ||
import { BaseLLM, ChatMessage, ChatParams, ChatResult, ClassifyParams, ClassifyResult, EmbedParams, EmbedResult, SummarizeParams, SummarizeResult } from "@memberjunction/ai"; | ||
import { OpenAI } from "openai"; | ||
@@ -7,2 +7,3 @@ import { ChatCompletionMessageParam } from "openai/resources"; | ||
constructor(apiKey: string); | ||
EmbedText(params: EmbedParams): Promise<EmbedResult>; | ||
ChatCompletion(params: ChatParams): Promise<ChatResult>; | ||
@@ -9,0 +10,0 @@ SummarizeText(params: SummarizeParams): Promise<SummarizeResult>; |
@@ -22,2 +22,5 @@ "use strict"; | ||
} | ||
async EmbedText(params) { | ||
throw new Error("Method not implemented."); | ||
} | ||
async ChatCompletion(params) { | ||
@@ -24,0 +27,0 @@ const messages = this.ConvertMJToOpenAIChatMessages(params.messages); |
{ | ||
"name": "@memberjunction/ai-openai", | ||
"version": "0.9.15", | ||
"version": "0.9.16", | ||
"description": "MemberJunction Wrapper for OpenAI AI Models", | ||
@@ -18,2 +18,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"openai": "^3.2.1", | ||
"ts-node-dev": "^2.0.0", | ||
@@ -23,6 +24,6 @@ "typescript": "^5.3.3" | ||
"dependencies": { | ||
"@memberjunction/ai": "^0.9.156", | ||
"@memberjunction/global": "^0.9.148", | ||
"@memberjunction/ai": "^0.9.159", | ||
"@memberjunction/global": "^0.9.152", | ||
"openai": "^4.28.4" | ||
} | ||
} |
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
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
10480
11
155
3