/ai-proxy-server

Simple backend proxy API to handle requests between your macOS SwiftUI app and the Mistral AI API (or another third-party AI API)

Primary LanguageTypeScriptMIT LicenseMIT

AI Proxy Server

Simple backend proxy API to handle requests between a client app and AI 3rd-party provider APIs (such as OpenAI or Anthropic's Claude).

At the moment, it includes the following AI APIs:

  • OpenAI
  • Mistral AI
  • Claude 3 (Anthropic)

Get Started

  1. npm install to install the dependencies.
  2. npm run dev for having nodemon running to the server restarting automatically on file changes.

Other Commands

  • npm run start - start as standard mode the server (without nodemon). Server doesn't restart on file changes.
  • npm run prod - more optimized for a production environment. This command will first run npm run build and then use node to execute the JavaScript compiled file.
  • npm run build - only to compile the TS files into ones.

Utility

  • npm run prettier:check– check any formatting/indentation errors.
  • npm run prettier:fix – fix any formatting/indentation errors.

Author

Hi there! ツ I'm Pierre-Henry Soria. A super passionate & enthusiastic problem-solver / senior software engineer living in Sydney 🦘 Also a true cheese 🧀, ristretto ☕️, and dark chocolate lover! 😋

Feel free to connect and reach me through my LinkedIn Profile 🚀

License

Distributed under the MIT license. Happy coding! 🔥