Skip to content

Commit 61fad0f

Browse files
committed
dummy commit just to check something on GitHub
1 parent d42e09d commit 61fad0f

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Run MATLAB Tests on GitHub-Hosted Runner
2-
on: [push]
2+
on: pus
33
jobs:
44
test:
55
name: Run MATLAB Tests and Generate Artifacts

openAIChat.m

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,22 @@
119119
[this.FunctionsStruct, this.FunctionNames] = functionAsStruct(nvp.Tools);
120120
end
121121

122+
if isempty(nvp.Tools)
123+
this.Tools = [];
124+
this.FunctionsStruct = [];
125+
this.FunctionNames = [];
126+
else
127+
this.Tools = nvp.Tools;
128+
[this.FunctionsStruct, this.FunctionNames] = functionAsStruct(nvp.Tools);
129+
end
130+
131+
if ~isempty(systemPrompt)
132+
systemPrompt = string(systemPrompt);
133+
if systemPrompt ~= ""
134+
this.SystemPrompt = {struct("role", "system", "content", systemPrompt)};
135+
end
136+
end
137+
122138
if ~isempty(systemPrompt)
123139
systemPrompt = string(systemPrompt);
124140
if systemPrompt ~= ""

0 commit comments

Comments
 (0)