Class: SmartChatModelRequestAdapter

SmartChatModelRequestAdapter(adapter, req)

Base class for request adapters to handle various input schemas and convert them to OpenAI schema.

Constructor

new SmartChatModelRequestAdapter(adapter, req)

Parameters:
Name Type Description
adapter SmartChatModelAdapter

The SmartChatModelAdapter instance.

req Object

The incoming request object.

Source:

Classes

SmartChatModelRequestAdapter

Members

max_tokens

Source:

messages

Source:

model

Source:

stream

Source:

temperature

Source:

tools

Source:

Methods

get_headers() → {Object}

Get the headers for the request.

Source:
Returns:

Headers object.

Type
Object

to_openai() → {Object}

Convert the request to OpenAI schema and include full request parameters.

Source:
Returns:

Request parameters object in OpenAI schema.

Type
Object