scitex_genai.llm

scitex_genai.llm.GenAI(model='gpt-3.5-turbo', stream=False, api_key=None, seed=None, temperature=1.0, n_keep=1, chat_history=None, max_tokens=4096, base_url=None, provider=None, backend=None)

Factory function to create an instance of an AI model handler.

backend{“default”, “litellm”}, optional

“litellm” routes ANY provider through the single litellm-backed handler (one OpenAI-compatible code path). Defaults to the SCITEX_GENAI_BACKEND env var, then to the per-provider classes.