KirillBelov/ AILink

Client for differen AI

Contributed by: Kirill Belov

Installation Instructions

To install this paclet in your Wolfram Language environment, evaluate this code:
PacletInstall["KirillBelov/AILink"]


To load the code after installation, evaluate this code:
Needs["KirillBelov`AILink`"]

Examples

Basic Examples (3) 

Create a chat object:

In[1]:=
chat = AIChatObject[
  "You're a math assistant and help with math problems."]
Out[1]=

Complete the chat:

In[2]:=
AIChatComplete[chat, "Solve the equation x + 1 = 0"]
Out[2]=

Last message:

In[3]:=
chat[-1]
Out[3]=

Images (2) 

Image input:

In[4]:=
chat = AIChatComplete[{"What do you see on the image?", Plot[Sin[x], {x, -8, 8}, ImageSize -> Tiny]}]
Out[4]=

Last message:

In[5]:=
chat[-1]
Out[5]=

Tools (3) 

Create a tools:

In[6]:=
wolframAlpha::usage = "wolframAlpha[query] query to Wolfram Alpha."; 
wolframAlpha[query_String] := WolframAlpha[query, "ShortAnswer"]

Use the tool:

In[7]:=
chat = AIChatComplete["What time is it? Ask WolframAlpha", "Tools" -> {wolframAlpha}]
Out[7]=

Last message:

In[8]:=
chat[-1]
Out[8]=

Speech to text (1) 

Speech to text:

In[9]:=
AITranscription[AudioCapture[]]
Out[9]=

Text to speech (1) 

Text to speech:

In[10]:=
AISpeech["Hello World"]
Out[10]=

Image generate (1) 

Image generate:

In[11]:=
AIImageGenerate["Wolf and ram"][["data", 1, "image"]]
Out[11]=

Publisher

Kirill Belov

Disclosures

Compatibility

Wolfram Language Version 14

Version History

  • 1.0.8 – 18 October 2024
  • 1.0.7 – 18 October 2024
  • 1.0.6 – 18 October 2024
  • 1.0.5 – 18 October 2024
  • 1.0.4 – 15 October 2024
  • 1.0.3 – 15 October 2024
  • 1.0.2 – 24 May 2024
  • 1.0.1 – 24 May 2024
  • 1.0.0 – 24 May 2024

License Information

MIT License

Paclet Source