UNPKG

langchain-xai

Version:

Grok API wrapper for Node.js

18 lines (17 loc) 419 B
interface GrokOptions { apiKey: string; model?: string; temperature?: number; maxTokens?: number; } export declare class ChatGrok { private apiKey; private model; private temperature; private maxTokens; constructor(options: GrokOptions); chat(input: string): Promise<string>; explain(input: string): Promise<string>; analyze(input: string): Promise<string>; } export {};