Skip to content

Commit 24eb623

Browse files
author
Your Name
committed
more changes
1 parent fb5e329 commit 24eb623

File tree

8 files changed

+120
-100
lines changed

8 files changed

+120
-100
lines changed

sdk/cpp/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ target_include_directories(CppSdk
9696
PUBLIC
9797
${CMAKE_CURRENT_SOURCE_DIR}/include
9898
${wil_src_SOURCE_DIR}/include
99+
PRIVATE
100+
${CMAKE_CURRENT_SOURCE_DIR}/src
99101
)
100102

101103
target_link_libraries(CppSdk
@@ -128,6 +130,7 @@ add_executable(CppSdkTests
128130
target_include_directories(CppSdkTests
129131
PRIVATE
130132
${CMAKE_CURRENT_SOURCE_DIR}/test
133+
${CMAKE_CURRENT_SOURCE_DIR}/src
131134
)
132135

133136
target_compile_definitions(CppSdkTests PRIVATE FL_TESTS)

sdk/cpp/CMakePresets.json

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,33 @@
4242
}
4343
},
4444
{
45-
"name": "x86-debug",
46-
"displayName": "MSVC x86 Debug",
47-
"inherits": "windows-base",
48-
"architecture": {
49-
"value": "x86",
50-
"strategy": "external"
51-
},
45+
"name": "linux-debug",
46+
"displayName": "Linux Debug",
47+
"generator": "Ninja",
48+
"binaryDir": "${sourceDir}/out/build/${presetName}",
49+
"installDir": "${sourceDir}/out/install/${presetName}",
5250
"cacheVariables": {
5351
"CMAKE_BUILD_TYPE": "Debug"
52+
},
53+
"condition": {
54+
"type": "equals",
55+
"lhs": "${hostSystemName}",
56+
"rhs": "Linux"
5457
}
5558
},
5659
{
57-
"name": "x86-release",
58-
"displayName": "MSVC x86 Release",
59-
"inherits": "windows-base",
60-
"architecture": {
61-
"value": "x86",
62-
"strategy": "external"
63-
},
60+
"name": "macos-debug",
61+
"displayName": "macOS Debug",
62+
"generator": "Ninja",
63+
"binaryDir": "${sourceDir}/out/build/${presetName}",
64+
"installDir": "${sourceDir}/out/install/${presetName}",
6465
"cacheVariables": {
65-
"CMAKE_BUILD_TYPE": "Release"
66+
"CMAKE_BUILD_TYPE": "Debug"
67+
},
68+
"condition": {
69+
"type": "equals",
70+
"lhs": "${hostSystemName}",
71+
"rhs": "Darwin"
6672
}
6773
}
6874
],

sdk/cpp/include/foundry_local.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
#include <gsl/span>
1515

1616
#include "configuration.h"
17-
#include "foundry_local_internal_core.h"
1817

1918
#include "logger.h"
2019

20+
namespace FoundryLocal::Internal {
21+
struct IFoundryLocalCore;
22+
}
23+
2124
namespace FoundryLocal {
2225
#ifdef FL_TESTS
2326
namespace Testing {
@@ -130,7 +133,7 @@ namespace FoundryLocal {
130133
const char* GetObject() const noexcept { return is_delta ? "chat.completion.chunk" : "chat.completion"; }
131134

132135
/// Returns the created timestamp as an ISO 8601 string.
133-
/// Computed lazily; only allocates when called.
136+
/// Computed lazilym only allocates when called.
134137
std::string GetCreatedAtIso() const;
135138
};
136139

@@ -353,7 +356,7 @@ namespace FoundryLocal {
353356
mutable std::chrono::steady_clock::time_point lastFetch_{};
354357

355358
mutable std::unordered_map<std::string, Model> byAlias_;
356-
mutable std::unordered_map<std::string, const ModelVariant*> modelIdToModelVariant_;
359+
mutable std::unordered_map<std::string, ModelVariant> modelIdToModelVariant_;
357360

358361
explicit Catalog(gsl::not_null<FoundryLocal::Internal::IFoundryLocalCore*> injected,
359362
gsl::not_null<ILogger*> logger);
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#pragma once
22
#include <cstdint>
3-
#include <type_traits>
43

54
extern "C" {
65
// Layout must match C# structs exactly

0 commit comments

Comments
 (0)