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

@skeet-framework/ai

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skeet-framework/ai - npm Package Compare versions

Comparing version 1.8.9 to 1.8.10

6

CHANGELOG.md
# @skeet-framework/ai
## 1.8.10
### Patch Changes
- [`0509f69`](https://github.com/elsoul/skeet/commit/0509f69f71c4901dd533193c18916dc51d67e045) Thanks [@POPPIN-FUMI](https://github.com/POPPIN-FUMI)! - Update - skeet add sql
## 1.8.9

@@ -4,0 +10,0 @@

2

dist/lib/geminiChat.d.ts

@@ -9,2 +9,2 @@ import { GenerationConfig, Content } from '@google-cloud/vertexai';

export declare const defaultGeminiConfig: ConfigGeminiType;
export declare const geminiChat: (contents: Content[], config?: ConfigGeminiType) => Promise<string>;
export declare const geminiChat: (contents: Content[], config?: ConfigGeminiType) => Promise<string | undefined>;
{
"name": "@skeet-framework/ai",
"version": "1.8.9",
"version": "1.8.10",
"description": "Skeet Framework Plugin - AI",

@@ -30,13 +30,13 @@ "main": "dist/index.js",

"dependencies": {
"@anthropic-ai/sdk": "0.20.1",
"@anthropic-ai/sdk": "0.20.4",
"@google-cloud/translate": "8.2.0",
"@google-cloud/vertexai": "0.5.0",
"@google-cloud/vertexai": "1.0.0",
"chalk": "5.3.0",
"dotenv": "16.4.5",
"openai": "4.33.0"
"openai": "4.33.1"
},
"devDependencies": {
"@types/node": "20.12.5",
"@typescript-eslint/eslint-plugin": "7.5.0",
"@typescript-eslint/parser": "7.5.0",
"@types/node": "20.12.7",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"esbuild": "0.20.2",

@@ -48,7 +48,7 @@ "eslint": "8.56.0",

"tsx": "4.7.2",
"typedoc": "0.25.12",
"typescript": "5.4.4",
"typedoc": "0.25.13",
"typescript": "5.4.5",
"vite": "5.2.8",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.4.0"
"vitest": "1.5.0"
},

@@ -55,0 +55,0 @@ "scripts": {

@@ -25,6 +25,6 @@ import {

location,
max_output_tokens: 256,
maxOutputTokens: 256,
temperature: 0.1,
top_p: 1,
top_k: 40,
topP: 1,
topK: 40,
model: 'gemini-1.0-pro' as GeminiModel,

@@ -44,3 +44,3 @@ }

}
const { model, project, location, ...generation_config } = config
const { model, project, location, ...generationConfig } = config
const vertex_ai = new VertexAI({

@@ -54,3 +54,3 @@ project,

model,
safety_settings: [
safetySettings: [
{

@@ -61,3 +61,3 @@ category: HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT,

],
generation_config,
generationConfig,
})

@@ -73,3 +73,4 @@

}
return resp.response.candidates[0].content.parts[0].text as string
if (resp.response.candidates)
return resp.response.candidates[0].content.parts[0].text as string
} catch (error) {

@@ -76,0 +77,0 @@ throw new Error(`Error in geminiChat: ${error}`)

@@ -26,6 +26,6 @@ import {

location,
max_output_tokens: 256,
maxOutputTokens: 256,
temperature: 0.1,
top_p: 1,
top_k: 40,
topP: 1,
topK: 40,
model: 'gemini-1.0-pro' as GeminiModel,

@@ -45,3 +45,3 @@ }

}
const { model, project, location, ...generation_config } = config
const { model, project, location, ...generationConfig } = config
const vertex_ai = new VertexAI({

@@ -55,3 +55,3 @@ project,

model,
safety_settings: [
safetySettings: [
{

@@ -62,3 +62,3 @@ category: HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT,

],
generation_config,
generationConfig,
})

@@ -65,0 +65,0 @@

Sorry, the diff of this file is too big to display

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