younifyd
Menu

Update a conversation model

Update a conversation model

PUT/conversations/models/{modelId}

Use it in a workflow

  1. Add a step and choose the Typesense connector.
  2. Pick the Update a conversation model action (under conversations).
  3. Fill in the fields below, then reference the result from later steps as {{updateAConversationModel.response.data}}.

Request

Path parameters

modelIdstringrequired

The id of the conversation model to update

Request body

Enter the body as JSON in the step's Body field.

idstring

An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id.

model_namestring

Name of the LLM model offered by OpenAI, Cloudflare or vLLM

api_keystring

The LLM service's API Key

history_collectionstring

Typesense collection that stores the historical conversations

account_idstring

LLM service's account ID (only applicable for Cloudflare)

system_promptstring

The system prompt that contains special instructions to the LLM

ttlinteger

Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours)

max_bytesinteger

The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window.

vllm_urlstring

URL of vLLM service

json
{
  "id": "string",
  "model_name": "string",
  "api_key": "string",
  "history_collection": "string",
  "account_id": "string",
  "system_prompt": "string",
  "ttl": 0,
  "max_bytes": 0,
  "vllm_url": "string"
}

Response

Returns 200 with a any. Read it in later steps with {{updateAConversationModel.response.data.<field>}}.

Need more? See the Typesense guide for connection setup and behaviour shared by every action.