LangChain
Use LangChain’s OpenAI integration with the Flow AI base URL.
Install
Chat
llm.stream(...), llm.bind_tools(...) and llm.with_structured_output(...) work on models that support streaming, tools and structured outputs.
Embeddings
In Python, check_embedding_ctx_length=False makes LangChain send your text as is. Otherwise it splits it into OpenAI tokens first, which other labs’ models don’t read.