1.1.4 • Published 2 years ago

chatgpt-meow v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ChatGPT Meow

How to use?

import { Meow } from 'chatgpt-meow';

const meow = new Meow({
  apiKey: process.env.OPENAI_APIKEY,
});

meow.sendMessage('Please tell me who is the most beautiful girl?', {
  username: 'Master',
}).then((res) => {
  console.log(res);
});

Reference

/**
 * Base Types
 */
export interface Message {
  username: string;
  content: string;
  reply: string;
  conversationId: string;
}

/**
 * Option Types
 */
export interface MeowOptions {
  apiKey: string;
  apiBaseUrl?: string;
  promptPrefix?: string;
  promptVarible?: {
    catName: string;
    [key: string]: string;
  };
  model?: string;
  maxToken?: number;
}

export interface MeowMessageOptions {
  username?: string;
  conversationId?: string;
}

Contact

Email: kanade@acgme.cn QQ: 69302630

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago