nimgent/providers/hyper
This page is generated from the module’s exported API and ## documentation comments.
Hyper adapter using its OpenAI-compatible chat completions API.
HyperOptions
Section titled “HyperOptions”Hyper-specific controls for its OpenAI-compatible endpoint.
HyperOptions = object user*: Option[string] parallelToolCalls*: Option[bool] includeUsage*: Option[bool] ## Include usage in streamed responses.Procedures
Section titled “Procedures”toProviderJson
Section titled “toProviderJson”Serialize Hyper-specific request options.
proc toProviderJson(value: HyperOptions): JsonNode {.raises: [], tags: [], forbids: [].}Returns: JsonNode.
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
value |
HyperOptions |
buildBody
Section titled “buildBody”Hyper chat body: max_tokens, no session_id or Anthropic cache breakpoints.
proc buildBody(request: ProviderRequest; stream: bool): JsonNode {. raises: [ProviderError, KeyError], tags: [ReadIOEffect, WriteIOEffect], forbids: [].}Returns: JsonNode.
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
request |
ProviderRequest |
|
stream |
bool |