From b6920f7040faa6401ffdcd90d40b066e3cfe7b91 Mon Sep 17 00:00:00 2001 From: Adam Eehan Date: Sat, 17 Oct 2026 19:36:17 +0530 Subject: [PATCH] Update ai.md --- modules/ai.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/ai.md b/modules/ai.md index 8e2557e..c59fe5c 100644 --- a/modules/ai.md +++ b/modules/ai.md @@ -49,6 +49,28 @@ import "ai"; ## Examples +### example +```aira +import "ai"; + +ai.set_key("YOUR_API_KEY"); +ai.set_provider("PROVIDER","MODEL"); + +while true{ + let user_input = input("Ask to AI : "); + + //EXIT CONTION + if user_input == "exit" { + say "Goood bye take care"; + break; + } + + //ai call + let replay = ai.ask(user_input); + say "Aira : " + replay; +} + + ### 1. Smart Auto-Routing ```aira import "ai";