Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Access AI services without any API keys!

NotificationsYou must be signed in to change notification settings

decryptable/libai

Repository files navigation

libai

To install:

npm i github:decryptable/libai

Models

Model IDModel NameVersionDescriptionSupport VisionSupport ThinkingSupport Search
openai/gpt-4o-mini ChatGPT 4o-mini4o-miniGPT-4o mini is OpenAI's newest model after GPT-4 Omni, supporting both text and image inputs with text outputs.YesNoYes
deepseek/deepseek-chat DeepSeek V3V3DeepSeek-V3 is the latest model from the DeepSeek team, building upon the instruction following and coding abilities.NoNoYes
qwen/qwq-32b Qwen QwQ-32BQwQ-32BNoYesYes
deepseek/deepseek-r1 DeepSeek R1R1NoYesYes
openai/gpt-4o ChatGPT 4o4oGPT-4o is OpenAI's latest AI model, supporting both text and image inputs with text outputs.YesNoYes
anthropic/claude-3.5-sonnet Claude 3.5 Sonnet3.5New Claude 3.5 Sonnet delivers better-than-Opus capabilities, faster-than-Sonnet speeds, at the same Sonnet prices.YesNoYes
anthropic/claude-3.7-sonnet Claude 3.7 Sonnet3.7New Claude 3.7 Sonnet delivers better-than-Opus capabilities, faster-than-Sonnet speeds, at the same Sonnet prices.YesNoYes
grok/grok-3 Grok V3V3NoNoYes
mistralai/mistral-large Mistral largelargeYesNoYes
google/gemini-2.0 Gemini 2.02.0Gemini Flash 2.0 offers a significantly faster time to first token (TTFT) compared to Gemini Flash 1.5.YesNoYes

Usage

importlibaifrom"libai";importgenerateAuthTokenfrom"./dist/utils/generateAuthToken";constmain=async()=>{constauthToken=awaitgenerateAuthToken();if(!authToken)return;console.log(`Auth token:${authToken}`)constmodels=awaitlibai.getModels();constselectedModel=models[0];console.log("Selected model:",selectedModel)constmessage="Hey there! How are you?";constwebSearch=true;letfinalResponse="";awaitlibai.getChatResponse(message,authToken,selectedModel.id,webSearch,null,(streamData)=>{if(streamData.content){process.stdout.write(streamData.content);finalResponse+=streamData.content;}});console.log(`\nFinal Response:${finalResponse}`);};main()

[8]ページ先頭

©2009-2025 Movatter.jp