mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update anthropic.js
This commit is contained in:
parent
46c5a91032
commit
5a5526df63
|
@ -8,16 +8,12 @@
|
|||
//
|
||||
var FILE = require("lib/file");
|
||||
var HTTP = require("lib/http");
|
||||
|
||||
function loadApiKey() {
|
||||
var s = FILE.readFile("data/anthropic-apikey.txt", FILE.CdoCharset.CdoUTF_8);
|
||||
return s.trim();
|
||||
}
|
||||
var APIKEY = require("lib/apikey");
|
||||
|
||||
function chat(content) {
|
||||
var answers = [];
|
||||
|
||||
var apikey = loadApiKey();
|
||||
var apikey = APIKEY.getApiKey("anthropic");
|
||||
console.log("Anthropic (Claude) API KEY:", apikey);
|
||||
|
||||
var response = HTTP.create("MSXML")
|
||||
|
@ -58,7 +54,7 @@ function chat(content) {
|
|||
|
||||
exports.chat = chat;
|
||||
|
||||
exports.VERSIONINFO = "Anthropic (Claude) interface (anthropic.js) version 0.1.1";
|
||||
exports.VERSIONINFO = "Anthropic (Claude) interface (anthropic.js) version 0.1.2";
|
||||
exports.AUTHOR = "abuse@catswords.net";
|
||||
exports.global = global;
|
||||
exports.require = global.require;
|
||||
|
|
Loading…
Reference in New Issue
Block a user