Skip to content

Commit 8c6b56e

Browse files
committed
feat: add llmapi 0.2.5/0.2.6 + tinyhttps 0.2.2/0.2.3 + fix CI
- packages/llmapi: add 0.2.5, 0.2.6; update dep to tinyhttps 0.2.2 - packages/tinyhttps: add 0.2.2, 0.2.3 - tests/llmapi: update to 0.2.5 API (Client<OpenAI> template) - setup-toolchain: add xlings update step, use .xlings.json install
1 parent 77857ab commit 8c6b56e

5 files changed

Lines changed: 20 additions & 9 deletions

File tree

.github/actions/setup-toolchain/action.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,23 @@ runs:
3939
shell: pwsh
4040
run: irm https://raw.githubusercontent.com/d2learn/xlings/refs/heads/main/tools/other/quick_install.ps1 | iex
4141

42-
- name: Install toolchain (linux)
43-
if: runner.os == 'Linux'
42+
- name: Refresh package index (unix)
43+
if: runner.os != 'Windows'
4444
shell: bash
4545
run: |
4646
export PATH="$HOME/.xlings/subos/current/bin:$PATH"
47-
xlings install gcc@15 -y
47+
xlings update
4848
49-
- name: Install toolchain (macos)
50-
if: runner.os == 'macOS'
49+
- name: Refresh package index (windows)
50+
if: runner.os == 'Windows'
51+
shell: pwsh
52+
run: |
53+
$env:PATH = "$env:USERPROFILE\.xlings\subos\current\bin;$env:PATH"
54+
xlings update
55+
56+
- name: Install toolchain (unix)
57+
if: runner.os != 'Windows'
5158
shell: bash
5259
run: |
5360
export PATH="$HOME/.xlings/subos/current/bin:$PATH"
54-
xlings install llvm@20 -y
61+
xlings install -y

packages/l/llmapi/xmake.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ package("llmapi")
99
"https://github.com/mcpplibs/llmapi.git"
1010
)
1111

12+
add_versions("0.2.6", "d4aedb04d695c6bbf5685fad79185642aec4a48e8b4211275b752294c3eb43cc")
13+
add_versions("0.2.5", "fffa1341beed98ace97e029c0e46f47f55470df6e6a7114374e73e2bfd13699f")
1214
add_versions("0.2.3", "1661960fd6752555dae58848257728e1808b5c096c2842bbf8a780393bf81b4a")
1315
add_versions("0.2.2", "014385091f4e9b84d42a6e00b8259552497949223d95c03558003bbb0990d904")
1416
add_versions("0.2.1", "d48f0bd6b6186aac91f5a26e9a20bc59014f396e7589cf8a52dfd6790de31dab")
@@ -17,7 +19,7 @@ package("llmapi")
1719
add_versions("0.0.1", "174f86d3afdf48a57ad1cc9688718d1f1100a78a7e56686c823c573c3ccf99f4")
1820

1921
add_includedirs("include")
20-
add_deps("mcpplibs-tinyhttps 0.2.0")
22+
add_deps("mcpplibs-tinyhttps 0.2.2")
2123

2224
on_load(function (package)
2325
package:add("links", "llmapi")

packages/m/mcpplibs-tinyhttps/xmake.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ package("mcpplibs-tinyhttps")
99
"https://github.com/mcpplibs/tinyhttps.git"
1010
)
1111

12+
add_versions("0.2.3", "67ff75050d31157d3c35562187c9fb622e66167c98bb950cebb51db9b07ebe97")
13+
add_versions("0.2.2", "bc4cb59475826a975dd0408b59a00cf41c4aa4078a0fc2e54929bde7fb696248")
1214
add_versions("0.2.0", "81dab607227f353fa83068d4fee47b6877ceff891719a60a9cd75eaf827fab44")
1315
add_versions("0.1.0", "af7daa6a63f264070a1ac8fe42725713ba7ea54e58f1e8b8e190d1b4c58a0896")
1416

tests/l/llmapi/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import mcpplibs.llmapi;
44
int main() {
55
using namespace mcpplibs::llmapi;
66

7-
auto client = Client(Config{
7+
auto client = Client<OpenAI>(Config{
88
.apiKey = "test-key",
99
.model = "gpt-4o-mini",
1010
});

tests/l/llmapi/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_requires("llmapi 0.1.0")
1+
add_requires("llmapi 0.2.5")
22

33
target("llmapi_test")
44
set_kind("binary")

0 commit comments

Comments
 (0)