ractogateway.adapters.openai_kit
OpenAI / Azure OpenAI adapter.
- class ractogateway.adapters.openai_kit.OpenAILLMKit(model='gpt-4o', *, api_key=None, base_url=None, **kwargs)[source]
Bases:
BaseLLMAdapterAdapter for the OpenAI Chat Completions API.
- Parameters:
- provider: str = 'openai'
- translate_tools(registry)[source]
Convert registry schemas to OpenAI function-calling format.
- run(prompt, user_message, *, history=None, tools=None, temperature=0.0, max_tokens=4096, **kwargs)[source]
Execute a prompt against the provider and return a normalised response.
- Return type:
- async arun(prompt, user_message, *, history=None, tools=None, temperature=0.0, max_tokens=4096, **kwargs)[source]
Async variant of
run().- Return type: