iron_ai_set_endpoint

エンドポイント URL を設定

iron_ai_set_endpoint "url"

(プラグイン / モジュール : iron_ai.hsp)

解説

"https://api.openai.com/v1" 等のベース URL を設定。
末尾に /chat/completions を内部で付加します。

サンプル逆引き (2)

sample_ai.hsp
sample_cam_ai.hsp

情報

プラグイン / モジュールiron_ai.hsp
バージョン1.0
作成日2026-04-14
著作者IronHSP / iron_ai
URLhttps://github.com/inovia/IronHSP
備考iron_ai.hsp は OpenAI 互換の /chat/completions エンドポイントを 1 行で
叩ける純 HSP3 クライアントです。

対応サーバ:
OpenAI (api.openai.com)
Anthropic (api.anthropic.com)
Ollama (localhost:11434)
LM Studio (localhost:1234)
llama.cpp (localhost:8080)
GitHub Models / Groq / DeepSeek / xAI 等

依存: iron_http.hsp + iron_json.hsp (本ファイルで auto include)
注意: HTTPS は WinHTTP のシステム証明書ストアを使用。
ストリーミングは未対応 (将来 Phase 2)。

#include "iron_ai.hsp"
タイプ拡張命令
グループiron_ai ― 設定
対応環境
  • その他 : Win32 / Win64
hs ファイルhsphelp\iron_ai.hs