GPT Server is a GPT4All wrapper that exposes an OpenAI / ChatML style REST interface. It is designed to facilitate development against OpenAI and local AI with minimal code changes.
To get started with GPT Server, follow these steps:
// latch | |
// Copyright 2017-2024 Sean Farrell <[email protected]> | |
// | |
// This program is free software. It comes without any warranty, to | |
// the extent permitted by applicable law. You can redistribute it | |
// and/or modify it under the terms of the Do What The Fuck You Want | |
// To Public License, Version 2, as published by Sam Hocevar. See | |
// http://www.wtfpl.net/ for more details. | |
#pragma once |
// State Machine | |
// Copyright 2022 Sean Farrell <[email protected]> | |
// | |
// This program is free software. It comes without any warranty, to | |
// the extent permitted by applicable law. You can redistribute it | |
// and/or modify it under the terms of the Do What The Fuck You Want | |
// To Public License, Version 2, as published by Sam Hocevar. See | |
// http://www.wtfpl.net/ for more details. | |
#pragma once |
// This program is free software. It comes without any warranty, to | |
// the extent permitted by applicable law. You can redistribute it | |
// and/or modify it under the terms of the Do What The Fuck You Want | |
// To Public License, Version 2, as published by Sam Hocevar. See | |
// http://www.wtfpl.net/ for more details. | |
#include "CrashWatchdog.h" | |
#include <stdexcept> | |
#include <array> |
name: Auto approve | |
on: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
auto-approve: | |
runs-on: ubuntu-latest |
// std gtest comparators | |
// Copyright 2022 Sean Farrell <[email protected]> | |
// | |
// This program is free software. It comes without any warranty, to | |
// the extent permitted by applicable law. You can redistribute it | |
// and/or modify it under the terms of the Do What The Fuck You Want | |
// To Public License, Version 2, as published by Sam Hocevar. See | |
// http://www.wtfpl.net/ for more details. | |
#pragma once |
template <typename EnumT> constexpr | |
bool one_of(EnumT value, const std::initializer_list<EnumT>& checkValues) | |
{ | |
for (const auto& cv : checkValues) | |
{ | |
if (value == cv) | |
{ | |
return true; | |
} | |
} |
template <typename T> | |
struct iterator_wrapper | |
{ | |
iterator_wrapper(T&& begin, T&& end) noexcept | |
: m_begin{std::forward<T>(begin)}, m_end{std::forward<T>(end)} {} | |
const T& begin() const noexcept | |
{ | |
return m_begin; | |
} |
This is short CLI to run supergenpass, for when the website is down.
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See
// PID Controller | |
// Copyright 2017 Sean Farrell <[email protected]> | |
// | |
// This program is free software. It comes without any warranty, to | |
// the extent permitted by applicable law. You can redistribute it | |
// and/or modify it under the terms of the Do What The Fuck You Want | |
// To Public License, Version 2, as published by Sam Hocevar. | |
// See http://www.wtfpl.net/ for more details. | |
#include "PidController.h" |