go2llm API documentation

Text request parameters

ParameterRequiredPurpose
modelyesthe exact ID from /v1/models
messagesyesthe conversation in the format of the chosen endpoint
max_tokensrecommendedupper bound on the output
systemnothe Anthropic Messages system instruction
temperaturenoanswer randomness, if the model supports it
streamnotrue turns on SSE
toolsnodescriptions of the available functions
tool_choicenotool selection

Optional parameters depend on the upstream model. If a request is rejected, strip it down to model, messages and max_tokens first, then add the other fields back one at a time.

The fields image_url, input_image, input_audio, document/image blocks, video fields and non-text modalities are not allowed on the text routes.