{"id":44556,"library":"chatlas","title":"Chatlas - A consistent interface for LLM chat","description":"Chatlas provides a simple and consistent interface for chatting with large language models (LLMs) from providers like OpenAI, Anthropic, Google Gemini, and others. Version 0.18.1 supports Python >=3.9 and follows a rapid release cadence. It abstracts away provider-specific details, offering a unified chat session API.","status":"active","version":"0.18.1","language":"python","source_language":"en","source_url":"https://github.com/posit-dev/chatlas","tags":["llm","chat","openai","anthropic","google","gemini"],"install":[{"cmd":"pip install chatlas","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"ChatOpenAI","correct":"from chatlas import ChatOpenAI"},{"note":"","wrong":"","symbol":"ChatAnthropic","correct":"from chatlas import ChatAnthropic"},{"note":"","wrong":"","symbol":"ChatGoogle","correct":"from chatlas import ChatGoogle"}],"quickstart":{"code":"import os\nfrom chatlas import ChatOpenAI\n\nchat = ChatOpenAI(model=\"gpt-4o-mini\", api_key=os.environ.get(\"OPENAI_API_KEY\", \"\"))\nresp = chat.chat(\"What is the capital of France?\")\nprint(resp)","lang":"python","description":"Creates a chat session with OpenAI and sends a message."},"warnings":[{"fix":"Explicitly specify the model parameter instead of relying on defaults.","message":"Version 0.18.1 changed the default model for ChatOpenAI to 'gpt-4o-mini'; previously it was 'gpt-4o'.","severity":"breaking","affected_versions":">=0.18.0"},{"fix":"Install the required provider package: pip install openai for ChatOpenAI.","message":"The library does not bundle dependencies for providers; you must install provider packages separately (e.g., openai, anthropic).","severity":"gotcha","affected_versions":"all"},{"fix":"Replace `chat.chat_session(...)` with `chat(...)`.","message":"The method `chat_session` is deprecated since 0.16.0; use `chat` directly.","severity":"deprecated","affected_versions":">=0.16.0"}],"env_vars":null,"search_vec":"'0.18.1':32 '3.9':35 'abstract':43 'anthrop':26,58 'api':54 'away':44 'cadenc':41 'chat':7,16,52,56 'chatla':1,8 'consist':3,13 'detail':48 'follow':37 'gemini':28,60 'googl':27,59 'interfac':4,14 'languag':19 'larg':18 'like':24 'llm':6,55 'llms':21 'model':20 'offer':49 'openai':25,57 'other':30 'provid':9,23,46 'provider-specif':45 'python':34 'rapid':39 'releas':40 'session':53 'simpl':11 'specif':47 'support':33 'unifi':51 'version':31","created_at":"2026-06-07T12:50:42.740955+00:00","updated_at":"2026-06-07T12:50:42.740955+00:00","problems":[{"fix":"Run: pip install openai","cause":"Chatlas does not automatically install provider packages.","error":"ModuleNotFoundError: No module named 'openai'"},{"fix":"Provide a valid model name, e.g., model=\"gpt-4o-mini\".","cause":"The model parameter is required but was omitted.","error":"chatlas.exceptions.ValueError: 'model' must be provided"},{"fix":"Use `chat.chat()` or directly call `chat(\"prompt\")`.","cause":"The `chat_session` method was removed in version 0.16.0.","error":"AttributeError: 'ChatOpenAI' object has no attribute 'chat_session'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/posit-dev/chatlas","github":"https://github.com/posit-dev/chatlas","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}