aiwrapper
Version:
A Universal AI Wrapper for JavaScript & TypeScript
18 lines (17 loc) • 471 B
JavaScript
import { OpenAIChatCompletionsLang } from "../openai/openai-chat-completions-lang.js";
class XAILang extends OpenAIChatCompletionsLang {
constructor(options) {
const modelName = options.model || "grok-2";
super({
apiKey: options.apiKey,
model: modelName,
systemPrompt: options.systemPrompt || "",
maxTokens: options.maxTokens,
baseURL: "https://api.x.ai/v1"
});
}
}
export {
XAILang
};
//# sourceMappingURL=xai-lang.js.map