Socket
Socket
Sign inDemoInstall

@axflow/models

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axflow/models - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

dist/google/generate-content.d.mts

48

dist/openai/chat.d.ts

@@ -44,12 +44,19 @@ type SharedRequestOptions = {

user?: string;
logprobs?: boolean | null;
top_logprobs?: number | null;
};
type Message = {
role: 'system' | 'user' | 'assistant' | 'function' | 'tool';
type SystemMessage = {
role: 'system';
name?: string;
content: string | null;
function_call?: {
name: string;
arguments: string;
};
tool_call_id?: string;
};
type UserMessage = {
role: 'user';
name?: string;
content: string | null;
};
type AssistantMessage = {
role: 'assistant';
name?: string;
content?: string | null;
tool_calls?: Array<{

@@ -63,3 +70,19 @@ id: string;

}>;
function_call?: {
name: string;
arguments: string;
};
};
type ToolMessage = {
role: 'tool';
name?: string;
content: string | null;
tool_call_id: string;
};
type FunctionMessage = {
role: 'function';
name: string;
content: string | null;
};
type Message = SystemMessage | UserMessage | AssistantMessage | ToolMessage | FunctionMessage;
type Response = {

@@ -75,2 +98,5 @@ id: string;

message: Message;
logprobs: {
content: any[] | null;
} | null;
}>;

@@ -88,6 +114,10 @@ usage?: {

model: string;
system_fingerprint: string;
choices: Array<{
index: number;
delta: Delta;
finish_reason: 'stop' | 'length' | 'function_call' | 'tool_calls' | null;
finish_reason: 'stop' | 'length' | 'function_call' | 'content_filter' | 'tool_calls' | null;
logprobs: {
content: any[] | null;
} | null;
}>;

@@ -103,4 +133,4 @@ };

tool_calls?: Array<{
id?: string;
index: number;
id?: string;
type?: 'function';

@@ -107,0 +137,0 @@ function: {

{
"name": "@axflow/models",
"version": "0.0.24",
"version": "0.0.25",
"description": "Zero-dependency, modular SDK for building robust natural language applications",

@@ -89,2 +89,5 @@ "author": "Axflow (https://axflow.dev)",

],
"google/generate-content": [
"./dist/google/generate-content.d.ts"
],
"anthropic/completion": [

@@ -148,2 +151,8 @@ "./dist/anthropic/completion.d.ts"

},
"./google/generate-content": {
"types": "./dist/google/generate-content.d.ts",
"import": "./dist/google/generate-content.mjs",
"module": "./dist/google/generate-content.mjs",
"require": "./dist/google/generate-content.js"
},
"./anthropic/completion": {

@@ -210,3 +219,3 @@ "types": "./dist/anthropic/completion.d.ts",

},
"gitHead": "ae40ef75896a60c79c3a0527a3b3371a15935ec2"
"gitHead": "ce5804a2661738dac0eabd957f8db47de517da6d"
}

4

README.md

@@ -27,5 +27,4 @@ # @axflow/models

- ✅ Azure OpenAI
- ✅ Google Gemini
- ✅ TogetherAI (Llama2, Mistral, etc.)
- Google PaLM models (coming soon)
- Replicate (coming soon)

@@ -39,2 +38,3 @@ ## Documentation

- [@axflow/models/openai/embedding](https://docs.axflow.dev/documentation/models/openai-embedding.html)
- [@axflow/models/google/generate-content](https://docs.axflow.dev/documentation/models/google-generate-content.html)
- [@axflow/models/azure-openai/chat](https://docs.axflow.dev/documentation/models/azure-openai-chat.html)

@@ -41,0 +41,0 @@ - [@axflow/models/anthropic/completion](https://docs.axflow.dev/documentation/models/anthropic-completion.html)

Sorry, the diff of this file is not supported yet

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