@skeet-framework/ai
Advanced tools
Comparing version 1.8.9 to 1.8.10
# @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 @@ |
@@ -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
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
159316
1509
+ Added@anthropic-ai/sdk@0.20.4(transitive)
+ Added@google-cloud/vertexai@1.0.0(transitive)
+ Addedopenai@4.33.1(transitive)
- Removed@anthropic-ai/sdk@0.20.1(transitive)
- Removed@google-cloud/vertexai@0.5.0(transitive)
- Removedopenai@4.33.0(transitive)
Updated@anthropic-ai/sdk@0.20.4
Updated@google-cloud/vertexai@1.0.0
Updatedopenai@4.33.1