awesome-repositories.com
Blog
MCP
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
MacPaw avatar

MacPaw/OpenAI

0
View on GitHub↗
2,862 stars·511 forks·Swift·mit·9 vues

OpenAI

This is an asynchronous Swift client library for calling OpenAI’s API across Apple platforms. It provides native access to chat completions, image generation and editing, speech synthesis and transcription, text embeddings, and content moderation through a single interface built on Swift’s async-await concurrency model.

The client supports structured output generation by constraining model responses to a provided JSON schema, and enables real-time consumption of generated text through streaming responses delivered as an AsyncSequence. It includes a thread-based conversation model for managing assistant workflows, with support for creating and running assistants, managing messages and runs, and submitting tool outputs. The library also provides a Model Context Protocol bridge for connecting external tools and data sources at runtime, and a provider compatibility layer that adjusts parsing logic to tolerate non-standard responses from third-party OpenAI-compatible services.

Beyond core API calls, the client handles multipart file uploads for assistants and image variations, computes text embeddings for similarity search, and offers configurable web search parameters. It includes image variation and editing capabilities, speech streaming, and audio translation. The library is distributed as a Swift package and supports cancellation of in-flight requests through Swift’s structured concurrency model.

Features

  • OpenAI API Clients - Provides an asynchronous Swift client for calling OpenAI's API across Apple platforms.
  • Streaming Chat Responses - Generates text responses from a language model with optional real-time token-by-token output.
  • Assistant Management APIs - Creates and manages assistants, threads, messages, and runs in conversational workflows.
  • Assistant Thread Runners - Starts a new thread and immediately processes it with an assistant.
  • Chat Completion Services - Sends prompts and conversation history to language models and returns generated text responses.
  • Conversational AI Assistants - Creates and manages AI assistants with threads, messages, and tool execution for conversational workflows.
  • API Speech Synthesizers - Generates audible speech from a text string using a specified voice and audio format.
  • Image Generation - Creates new images from text descriptions using a generative AI model.
  • Conversation Threads - Manages assistant conversations as persistent threads with sequential message and run state tracking.
  • Multimodal Content Generators - Creates images, synthesizes speech, and transcribes or translates audio using generative AI models.
  • Prompt-Based Text Generation - Sends a text prompt to a language model and returns the generated text response.
  • Image Description Generators - Creates new images based on textual descriptions using a DALL-E model.
  • Unified Audio Transcription - Converts spoken audio into written text, supporting multiple languages and formats.
  • Streaming Text Generation - Delivers generated text tokens incrementally as the model produces them for real-time display.
  • Multimodal Clients - Generates images, synthesizes speech, transcribes audio, and computes text embeddings.
  • API Speech Synthesizers - Converts a text string into spoken audio using a specified voice and format.
  • LLM Schema Outputs - Specifies a JSON schema to constrain the format of a model's text response for reliable parsing.
  • Schema-Constrained Outputs - Provides structured output generation by constraining model responses to a provided JSON schema.
  • Schema-Constrained Sampling - Forces the model to return structured data that conforms to a provided JSON schema.
  • Streaming Response Architectures - Delivers incremental tokens or audio chunks via an AsyncSequence for real-time consumption.
  • Incremental Response Clients - Receives generated text tokens incrementally as the model produces them for real-time display.
  • Model Context Protocol - Connects external tools and data sources through a standardized Model Context Protocol interface.
  • Assistant Configuration Updates - Modifies the configuration of an existing AI assistant, such as its model or instructions.
  • Assistant Creations - Configures new AI assistants with a model, instructions, and tools for conversational tasks.
  • Assistant File Uploads - Uploads files, such as PDFs, to be used by an AI assistant as a knowledge source.
  • MCP Protocol Integrations - Integrates external tools and data sources through the Model Context Protocol.
  • Function Calling Interfaces - Invokes callable functions that a model can execute during a chat completion.
  • Image Variation and Mixing - Generates new images as variations of a provided source image using a generative AI model.
  • Message Management - Retrieves all messages belonging to a specific conversation thread for review or processing.
  • Speech-to-Text Translation - Translates spoken audio from any language into English text.
  • Structured Output Generators - Constrains model responses to conform to a provided JSON schema for reliable programmatic parsing.
  • Text Embedding Generators - Converts a text input into a vector representation for use in machine learning tasks.
  • Text Embeddings - Converts text into numerical vectors for semantic search, clustering, or similarity comparison tasks.
  • Streaming Speech Outputs - Delivers synthesized speech audio data in chunks as it is generated.
  • Vector Embeddings - Converts text into numerical vectors using an embedding model for similarity search and clustering.
  • Tool Output Submissions - Provides the results of a tool call back to the assistant so it can continue processing.
  • Image Editing - Modifies existing images by applying changes described in a text prompt.
  • Run Status Inspections - Fetches the current state and details of a specific assistant run for monitoring progress.
  • Mask-Guided Image Editors - Edits images by applying a prompt to areas specified by a mask.
  • Message Appending APIs - Provides an API to add new messages to an existing conversation thread for assistant workflows.
  • Remote Tool Integrations - Connects to external data sources and services via the Model Context Protocol to extend model capabilities.
  • Content Moderation - Checks text against a content policy and returns category-specific violation scores.
  • Content Moderation Policies - Classifies input text to determine if it violates a defined content policy.
  • Response Structure Standardization - Creates AI-powered responses with configurable input and output schemas for programmatic use.
  • AI and Machine Learning - Client library for interacting with public generative AI APIs.
  • Development Packages - API client for AI services.

Historique des stars

Graphique de l'historique des stars pour macpaw/openaiGraphique de l'historique des stars pour macpaw/openai

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Questions fréquentes

Que fait macpaw/openai ?

This is an asynchronous Swift client library for calling OpenAI’s API across Apple platforms. It provides native access to chat completions, image generation and editing, speech synthesis and transcription, text embeddings, and content moderation through a single interface built on Swift’s async-await concurrency model.

Quelles sont les fonctionnalités principales de macpaw/openai ?

Les fonctionnalités principales de macpaw/openai sont : OpenAI API Clients, Streaming Chat Responses, Assistant Management APIs, Assistant Thread Runners, Chat Completion Services, Conversational AI Assistants, API Speech Synthesizers, Image Generation.

Quelles sont les alternatives open-source à macpaw/openai ?

Les alternatives open-source à macpaw/openai incluent : openai/openai-go — openai-go is an LLM SDK for Go and a client for interacting with OpenAI services. It provides type-safe bindings to… spring-projects/spring-ai — Spring AI is an application framework for Java that provides a portable, fluent API for integrating AI models, tools,… openai-php/client — This project is a PHP API client and SDK for integrating OpenAI services into PHP applications. It serves as an… zai-org/glm-4.5 — GLM-4.5 is a multimodal large language model and advanced reasoning system. It functions as an AI coding assistant, an… crmne/ruby_llm — ruby_llm is an LLM integration framework and AI agent orchestrator designed to connect applications to multiple large… aallam/openai-kotlin — This project is a multiplatform software development kit designed to integrate large language models into Kotlin…

Alternatives open source à OpenAI

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec OpenAI.
  • openai/openai-goAvatar de openai

    openai/openai-go

    2,974Voir sur GitHub↗

    openai-go is an LLM SDK for Go and a client for interacting with OpenAI services. It provides type-safe bindings to generate text, images, and audio via REST endpoints, enabling the integration of large language models and AI assistant orchestration into Go applications. The library serves as an agent orchestration tool for managing stateful conversation threads and autonomous agents with integrated tool calling and file search. It also functions as an asynchronous batch processing client for monitoring large-scale request groups and fine-tuning jobs, alongside a management SDK for controllin

    Go
    Voir sur GitHub↗2,974
  • spring-projects/spring-aiAvatar de spring-projects

    spring-projects/spring-ai

    9,001Voir sur GitHub↗

    Spring AI is an application framework for Java that provides a portable, fluent API for integrating AI models, tools, and vector stores into applications. It wraps multiple AI providers behind a common interface, allowing developers to switch between chat, embedding, image, and speech models without changing application code. The framework includes a chainable chat client API similar to WebClient or RestClient, supports both synchronous and streaming interactions, and offers structured output conversion that transforms unstructured AI responses into strongly-typed Java objects. The framework

    Javaartificial-intelligencejavaspring-ai
    Voir sur GitHub↗9,001
  • openai-php/clientAvatar de openai-php

    openai-php/client

    5,805Voir sur GitHub↗

    This project is a PHP API client and SDK for integrating OpenAI services into PHP applications. It serves as an integration library and wrapper for interacting with large language models to generate text, images, and audio via REST API calls. The library provides specialized orchestration for AI assistants, managing conversation threads and vector stores. It also includes tools for custom model fine-tuning, semantic search implementation through text embeddings, and audio processing for transcription and synthesis. The capability surface covers content moderation, file management, and the ha

    PHP
    Voir sur GitHub↗5,805
  • zai-org/glm-4.5Avatar de zai-org

    zai-org/GLM-4.5

    4,210Voir sur GitHub↗

    GLM-4.5 is a multimodal large language model and advanced reasoning system. It functions as an AI coding assistant, an autonomous AI agent, and a multimodal content generator capable of processing and generating text, images, audio, and video within a single unified system. The project is distinguished by its deep reasoning capabilities, utilizing chain-of-thought processing to solve complex mathematical, logical, and technical problems. It features an agentic architecture that allows for autonomous task execution, long-horizon goal planning, and the ability to interact with external tools an

    Pythonagentglmllm
    Voir sur GitHub↗4,210
  • Voir les 30 alternatives à OpenAI→