ellmer0.3.2 package

Chat with Large Language Models

batch_chat

Submit multiple chats in one batch

chat_anthropic

Chat with an Anthropic Claude model

chat_aws_bedrock

Chat with an AWS bedrock model

chat_azure_openai

Chat with a model hosted on Azure OpenAI

chat_cloudflare

Chat with a model hosted on CloudFlare

chat_cortex_analyst

Create a chatbot that speaks to the Snowflake Cortex Analyst

chat_databricks

Chat with a model hosted on Databricks

chat_deepseek

Chat with a model hosted on DeepSeek

chat_github

Chat with a model hosted on the GitHub model marketplace

chat_google_gemini

Chat with a Google Gemini or Vertex AI model

chat_groq

Chat with a model hosted on Groq

chat_huggingface

Chat with a model hosted on Hugging Face Serverless Inference API

chat_mistral

Chat with a model hosted on Mistral's La Platforme

chat_ollama

Chat with a local Ollama model

chat_openai

Chat with an OpenAI model

chat_openrouter

Chat with one of the many models hosted on OpenRouter

chat_perplexity

Chat with a model hosted on perplexity.ai

chat_portkey

Chat with a model hosted on PortkeyAI

chat_snowflake

Chat with a model hosted on Snowflake

chat_vllm

Chat with a model hosted by vLLM

chat-any

Chat with any provider

Chat

The Chat object

content_image_url

Encode images for chat input

content_pdf_file

Encode PDFs content for chat input

Content

Content types received from and sent to a chatbot

contents_record

Record and replay content

contents_text

Format contents into a textual representation

create_tool_def

Create metadata for a tool

deprecated

Deprecated functions

ellmer-package

ellmer: Chat with Large Language Models

google_upload

Upload a file to gemini

has_credentials

Are credentials avaiable?

interpolate

Helpers for interpolating data into prompts

live_console

Open a live chat application

parallel_chat

Submit multiple chats in parallel

params

Standard model parameters

Provider

A chatbot provider

token_usage

Report on token usage in the current session

tool_annotations

Tool annotations

tool_reject

Reject a tool call

tool

Define a tool

Turn

A user or assistant turn

type_boolean

Type specifications

Type

Type definitions for function calling and structured data extraction.

Chat with large language models from a range of providers including 'Claude' <https://claude.ai>, 'OpenAI' <https://chatgpt.com>, and more. Supports streaming, asynchronous calls, tool calling, and structured data extraction.

  • Maintainer: Hadley Wickham
  • License: MIT + file LICENSE
  • Last published: 2025-09-03