awesome-repositories.com
Blog
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
·
ollama avatar

ollama/ollama-python

0
View on GitHub↗
9,378 stars·922 forks·Python·mit·6 vuesollama.com↗

Ollama Python

ollama-python is a Python client for interacting with large language models. It provides an interface for sending prompts to receive text and chat completions, as well as a dedicated client for generating numerical vector embeddings from text.

The project includes a wrapper that emulates the OpenAI API, allowing applications built for that standard to interact with local models. It also provides a non-blocking asynchronous client for executing concurrent requests.

The library covers the full model lifecycle, including the ability to pull, create, list, and delete models within a local environment. It handles remote endpoint connectivity via configurable host addresses and authentication headers.

Features

  • Local Model Integrations - Provides a Python client for integrating locally hosted language models to generate text and chat completions.
  • OpenAI-Compatible APIs - Implements OpenAI-compatible API interfaces to allow local models to work with applications built for OpenAI.
  • Chat Completion Services - Provides interfaces for sending prompts to receive both structured text responses and conversational chat replies.
  • Embedding Clients - Provides a dedicated client for generating numerical vector embeddings from text using hosted models.
  • Local Model Lifecycle Managers - Automates the lifecycle of local models, including pulling, creating, listing, and deleting instances.
  • Model Lifecycle Managers - Implements tools for pulling, creating, listing, and deleting language models within a local environment.
  • Text Embedding Generators - Includes a dedicated client for generating numerical vector embeddings from text for search and similarity tasks.
  • Vector Embeddings - Converts text into numerical vector representations for use in search systems or similarity-based applications.
  • LLM Clients - Provides a programmatic interface for sending prompts to large language models and receiving completions.
  • Cloud API Emulators - Maps internal method calls to external API standards to ensure compatibility with third-party provider formats.
  • LLM Stream Processing - Processes model responses piece by piece using Python generators for real-time text streaming.
  • Unified Model Catalogs - Allows retrieval of a detailed catalog of installed models, including names, sizes, and version digests.
  • Asynchronous Clients - Offers a non-blocking interface for executing concurrent requests to a language model server.
  • Asynchronous Request Execution - Provides a non-blocking asynchronous client for executing concurrent requests to language models.
  • Concurrent AI Requesting - Enables non-blocking requests to language models to handle multiple concurrent AI operations.
  • Asyncio Coroutine Execution - Uses Python's asyncio event loop to handle multiple network requests simultaneously without halting the program.
  • REST Clients - Implements an HTTP-based REST client to communicate with the backend Ollama server.

Historique des stars

Graphique de l'historique des stars pour ollama/ollama-pythonGraphique de l'historique des stars pour ollama/ollama-python

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 ollama/ollama-python ?

ollama-python is a Python client for interacting with large language models. It provides an interface for sending prompts to receive text and chat completions, as well as a dedicated client for generating numerical vector embeddings from text.

Quelles sont les fonctionnalités principales de ollama/ollama-python ?

Les fonctionnalités principales de ollama/ollama-python sont : Local Model Integrations, OpenAI-Compatible APIs, Chat Completion Services, Embedding Clients, Local Model Lifecycle Managers, Model Lifecycle Managers, Text Embedding Generators, Vector Embeddings.

Quelles sont les alternatives open-source à ollama/ollama-python ?

Les alternatives open-source à ollama/ollama-python incluent : langroid/langroid — Langroid is a multi-agent orchestration framework and tool integration suite designed for building complex AI… ollama/ollama-js — ollama-js is a JavaScript client library and API wrapper that provides a programmatic interface for interacting with… mlc-ai/web-llm — WebLLM is a library for executing large language models directly within web browsers. It provides a framework for… ericlbuehler/mistral.rs — mistral.rs is an inference engine for large language models that runs locally and exposes models behind OpenAI and… 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… sgl-project/sglang — Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It…

Alternatives open source à Ollama Python

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Ollama Python.
  • langroid/langroidAvatar de langroid

    langroid/langroid

    3,894Voir sur GitHub↗

    Langroid is a multi-agent orchestration framework and tool integration suite designed for building complex AI applications. It serves as a multi-modal integration layer that connects diverse local and remote language models with an agentic retrieval-augmented generation system. The project distinguishes itself through a collaborative message-exchange paradigm, allowing specialized agents to delegate tasks hierarchically and coordinate via structured communication. It features an advanced state management system for conversational AI, including the ability to rewind and prune conversation hist

    Pythonagentsaichatgpt
    Voir sur GitHub↗3,894
  • ollama/ollama-jsAvatar de ollama

    ollama/ollama-js

    4,277Voir sur GitHub↗

    ollama-js is a JavaScript client library and API wrapper that provides a programmatic interface for interacting with and managing large language models. It enables the execution of models in both local and cloud-based environments, facilitating the generation of conversational text and the management of model lifecycles. The project distinguishes itself by offering specialized tools for model administration, including the ability to download, create, and remove models, as well as the capacity to define custom model blueprints and prompt templates. It also provides a vector embedding client fo

    TypeScriptjavascriptjsollama
    Voir sur GitHub↗4,277
  • mlc-ai/web-llmAvatar de mlc-ai

    mlc-ai/web-llm

    18,208Voir sur GitHub↗

    WebLLM is a library for executing large language models directly within web browsers. It provides a framework for building conversational artificial intelligence applications that perform inference locally, ensuring user data privacy by eliminating the need for external server dependencies. The project distinguishes itself by leveraging browser-native graphics APIs to perform intensive machine learning computations on the client side. It maintains application responsiveness by offloading heavy model tasks to background threads and ensures continuous operation through service workers that func

    TypeScriptchatgptdeep-learninglanguage-model
    Voir sur GitHub↗18,208
  • ericlbuehler/mistral.rsAvatar de EricLBuehler

    EricLBuehler/mistral.rs

    6,597Voir sur GitHub↗

    mistral.rs is an inference engine for large language models that runs locally and exposes models behind OpenAI and Anthropic-compatible APIs. It serves as a multi-model serving platform, capable of loading several models in a single server process with per-request routing and on-demand loading and unloading. The engine supports multimodal inference, processing text alongside images, video, audio, and speech inputs, and includes a quantized model deployment runtime that reduces memory use and speeds up inference on consumer hardware. The project distinguishes itself through an agentic tool exe

    Rustllmrustuqff
    Voir sur GitHub↗6,597
Voir les 30 alternatives à Ollama Python→