Skip to content

Commit

Permalink
add missing file
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Van Bortel <[email protected]>
  • Loading branch information
cebtenzzre committed Nov 7, 2024
1 parent edafa9e commit 49ad703
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gpt4all-chat/src/utils.inl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <QJsonObject>

inline QJsonObject makeJsonObject(std::initializer_list<std::pair<QLatin1StringView, QJsonValue>> args)
{
QJsonObject obj;
for (auto &arg : args)
obj.insert(arg.first, arg.second);
return obj;
}

0 comments on commit 49ad703

Please sign in to comment.