Skip to content

Commit

Permalink
dummy commit just to check something on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
ccreutzi committed Jul 24, 2024
1 parent d42e09d commit 61fad0f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Run MATLAB Tests on GitHub-Hosted Runner
on: [push]
on: pus
jobs:
test:
name: Run MATLAB Tests and Generate Artifacts
Expand Down
16 changes: 16 additions & 0 deletions openAIChat.m
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,22 @@
[this.FunctionsStruct, this.FunctionNames] = functionAsStruct(nvp.Tools);
end

if isempty(nvp.Tools)
this.Tools = [];
this.FunctionsStruct = [];
this.FunctionNames = [];
else
this.Tools = nvp.Tools;
[this.FunctionsStruct, this.FunctionNames] = functionAsStruct(nvp.Tools);
end

if ~isempty(systemPrompt)
systemPrompt = string(systemPrompt);
if systemPrompt ~= ""
this.SystemPrompt = {struct("role", "system", "content", systemPrompt)};
end
end

if ~isempty(systemPrompt)
systemPrompt = string(systemPrompt);
if systemPrompt ~= ""
Expand Down

0 comments on commit 61fad0f

Please sign in to comment.