zeitlings / ayai-gpt-nexus

OpenAI, Anthropic, and Gemini integrations with support for local LLMs
15 stars 0 forks source link
alfred-workflow anthropic-claude google-gemini openai-chatgpt perplexity

ChatGPT, Claude, Perplexity, and Gemini integrations for chat, information retrieval, and text processing tasks, such as paraphrasing, simplifying, or summarizing. With support for third party proxies and local LLMs.


[!NOTE] This is an alpha preview version of the workflow. You can download it here: Ayai · GPT Nexus

A. Setup

  1. Define keyboard shortcuts to quickly view the current chat and the archive.
    • e.g. ⌥⇧A and ⌘⇧A (optional).
  2. Install the SF Pro font from Apple to display icons.
  3. Enter your API keys for the services you want to use.
  4. Configure your proxy or local host settings in the Environment Variables (optional).
    • See example configurations in the wiki.

B. Usage

Keyword

Chat Window

Chat History

C. Prompting

A prompt is the text that you give the model to elicit, or "prompt," a relevant output. A prompt is usually in the form of a question or instructions.

References

D. Configuration

Primary

The primary configuration setting determines the service that is used for conversations.

OpenAI Proxies[^1]

If you want to use a third party proxy, define the correlating host, path, API key, model, and if required the url scheme or port in the environment variables. The variables are prefixed as alternatives to OpenAI, because Ayai expects the returned stream events and errors to mirror the shape of those returned by the OpenAI API.

Local LM's[^2]

If you want to use a local language model, define the correlating url scheme, host, port, path, and if required the model in the environment variables to establish a connection to the local HTTP initiated and maintained by the method of your choice. The variables are prefixed as alternatives to OpenAI, because Ayai expects the returned stream events and errors to mirror the shape of those returned by the OpenAI API.

[^1]: Third party proxies such as OpenRouter, Groq, Fireworks or Together.ai
[^2]: Local HTTP servers can be set up with interfaces such as LM Studio or Ollama