Skip to content

cdillard/LogicSage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogicSage: AI Code & Chat on Apple platforms. (iPadOS, MacOS, and iOS)

LogicSage: AI iOS Code & Chat. (iPadOS, MacOS, iOS and more platforms soon!) - on the AppStore for free now!

  • Bug fixes and App enhancements to provide a better Code & Chat experience.
  • Work with Assistants backed by uploaded files. Upload file when creating assistant to chat about file data.
  • Set Conversation temperature to control creativity of AI.
  • Use -web-browsing suffixed model to use experimental Search and Link Command.

Table of Contents

Use LogicSage without Mac

Chat with GPT using tools (google, link) which allow incorporation of Google Search results into GPT responses.

Getting Started with LogicSage: iOS, iPadOS

with LogicSage: iOS, iPadOS

Chat and copy code snippets:

  1. Download LogicSage from the App Store
  2. LogicSage is a 'Bring Your Own API Key' app. Before you can start chatting, you need to enter an OpenAI API Key (https://platform.openai.com/account/api-keys) in the apps UI.
    • it will be stored securely in your devices keychain. It will only be used when sending request to Open AI server (Check the source code in SettingsViewModel to check openAIKey handling.).

Optional steps for additional features:

Google Search API Integration:

  • Create a Google Custom Search API Key here.

https://developers.google.com/custom-search/v1/introduction

  • Get a Google Search API Key and Secret from Google Developer Console.
  • Enter Google Search API Key and Google Search API Secret in Settings tab of app.
  • Change model to gpt-4-1106-web-browsing* (this is added by LogicSage.)

MacOS

Use LogicSage with Mac by connecting to the LogicSageCommandLine app!

(Work in Progress) MacOS / iOS GPT Middleware that allows GPT to build, run, and test Xcode projects.

When connected to the LogicSageCommandLine you can use the "Term" window from the LogicSage app, This allows you to invoke the commands on your mac from your device.

  • Using LogicSage for Mac to launch the LogicSageCommandLine which allows
  • to open / build AI geneaterated Xcode projects on your Mac.
  • open/run/edit Xcode projects on iOS. (Work in Progress)
  1. Go to the root of your MacOS user directory (~)

    • cd ~
  2. Clone the repository: git clone https://github.com/cdillard/LogicSage.git

    • You should now have the repository checked out in ~/LogicSage/
  3. Open ~/LogicSage/ in Finder.

  4. Open LogicSageCommandLine.xcworkspace by double clicking it.

  5. Set OPEN_AI_KEY in Swifty-GPT/GPT-Info.plist within this Xcode project.

    To use LogicSageCommandLine please set up your LogicSage passwords. Please choose and set values for - SWIFTSAGE_USERNAME, SWIFTSAGE_PASSWORD & SWIFTSAGE_SERVER_USERNAME, SWIFTSAGE_SERVER_PASSWORD

    Now set those values in the following .plist files in the repository.

    • LogicSage/LogicSage/GPT-Info.plist

    • SwiftSageServer/App/GPT-Info.plist

    • Swifty-GPT/GPT-Info.plist

    • Optional for customizable bgs: Run ./copy_wallpapers.sh to copy your existing Mac OS Desktops to the LogicSageWorkspace. This is where LogicSage will grab your desired wallpaper backgrounds from.

  6. Create folder ~/Documents/LogicSageWorkspace

  7. Create folder ~/Documents/LogicSageForMacWorkspace

  8. Open LogicSage/LogicSage.xcodeproj and run the Mac OS app.

  9. Select Start server

  10. Observe launched Terminal windows running LogicSageCommandLine.

  11. How to use LogicSageCommandLine

  • If the server is running you can interact with the LogicSageCommandLine by using the "Term" window within a LogicSage app for Mac, iOS, iPadOS, or another supported platform.

LogicSageCommandLine Installation Requirements

Installing Homebrew and Ruby

If you don't have Homebrew and Ruby installed, follow these steps:

  1. Install Homebrew by running: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install Ruby by running: brew install ruby

Installing XcodeGen and Xcodeproj

  1. Install XcodeGen: brew install xcodegen
  2. Install Xcodeproj: gem install xcodeproj

Disclaimer

I am not responsible for any issues (legal or otherwise) that may arise from using the code in this repository. This is an experimental project, and I cannot guarantee its contents. The developer of this project does not accept any responsibility or liability for any losses, damages, or other consequences that may occur as a result of using this software. You are solely responsible for any decisions and actions taken based on the information provided by LogicSage.

Token Usage Warning

Please note that the use of the GPT language model can be expensive due to its token usage. By utilizing this project, you acknowledge that you are responsible for monitoring and managing your own token usage and the associated costs. It is highly recommended to check your OpenAI API usage regularly and set up any necessary limits or alerts to prevent unexpected charges.

You can get a key here https://platform.openai.com/account/api-keys

  • Keep in mind turbo model is cheaper. the OG gpt-4 model can be expensive, use carefully.

LogicSage needs an API key to make requests to OpenAI's API. Note that you will be charged by OpenAI for your API usage when hitting the send/"paperairplane" button.

Make sure to set usage limits! and keep an eye on your usage here:


Contact

Created by: Chris Dillard

Please raise Github issues or open a PR to discuss this project with me.


Credits