File tree Expand file tree Collapse file tree 8 files changed +120
-100
lines changed
Expand file tree Collapse file tree 8 files changed +120
-100
lines changed Original file line number Diff line number Diff 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
101103target_link_libraries (CppSdk
@@ -128,6 +130,7 @@ add_executable(CppSdkTests
128130target_include_directories (CppSdkTests
129131 PRIVATE
130132 ${CMAKE_CURRENT_SOURCE_DIR} /test
133+ ${CMAKE_CURRENT_SOURCE_DIR} /src
131134)
132135
133136target_compile_definitions (CppSdkTests PRIVATE FL_TESTS )
Original file line number Diff line number Diff line change 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 ],
Original file line number Diff line number Diff line change 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+
2124namespace 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);
File renamed without changes.
Original file line number Diff line number Diff line change 11#pragma once
22#include < cstdint>
3- #include < type_traits>
43
54extern " C" {
65 // Layout must match C# structs exactly
You can’t perform that action at this time.
0 commit comments