{"id":26988,"library":"fhlmi","title":"FHLMI Client","description":"A Python client library for providing LLM responses to FutureHouse applications. Currently at version 0.46.0, targeting Python >=3.11. Under active development with frequent releases.","status":"active","version":"0.46.0","language":"python","source_language":"en","source_url":"https://github.com/futurehouse/fhlmi","tags":["llm","client","api","futurehouse"],"install":[{"cmd":"pip install fhlmi","lang":"bash","label":"latest"}],"dependencies":[{"reason":"HTTP client for async requests","package":"aiohttp","optional":false},{"reason":"Data validation and settings","package":"pydantic","optional":false}],"imports":[{"note":"Public API surface; inner modules may change without notice.","wrong":"from fhlmi.client import FHLMIClient","symbol":"FHLMIClient","correct":"from fhlmi import FHLMIClient"}],"quickstart":{"code":"from fhlmi import FHLMIClient\nimport os\n\nclient = FHLMIClient(api_key=os.environ.get('FHLMI_API_KEY', ''))\nresponse = client.chat([{\"role\": \"user\", \"content\": \"Hello\"}])\nprint(response)","lang":"python","description":"Initialize client with API key and send a chat message."},"warnings":[{"fix":"Use `response.content` instead of treating the response as a string.","message":"The `.chat()` method changed from returning plain text to returning a pydantic model in 0.40.0. Access `.content` for the response text.","severity":"breaking","affected_versions":"<0.40.0"},{"fix":"Replace `model=` with `model_name=`.","message":"The `model` parameter in `chat()` is deprecated as of 0.45.0. Use `model_name` instead.","severity":"deprecated","affected_versions":">=0.45.0"},{"fix":"Ensure your runtime uses Python >=3.11.","message":"The client requires Python 3.11 or later. Installing on older Python versions will fail silently or produce cryptic errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Upgrade fhlmi: pip install --upgrade fhlmi","cause":"Older version of the library (<0.20.0) had a different API. Not all versions export FHLMIClient.","error":"ImportError: cannot import name 'FHLMIClient' from 'fhlmi'"},{"fix":"Use `response.content` instead of `response.text`.","cause":"Using old attribute name after the breaking change in 0.40.0.","error":"AttributeError: 'ChatResponse' object has no attribute 'text'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}