Generate
Changed onGenerate a response using Contextual's Grounded Language Model (GLM), an LLM engineered specifically to prioritize faithfulness to in-context retrievals over parametric knowledge to reduce hallucinations in Retrieval-Augmented Generation and agentic use cases.
The total request cannot exceed 32,000 tokens.
See our blog post and code examples. Email glm-feedback@contextual.ai with any feedback or questions.
Request
- Base URLhttps://api.contextual.ai/v1
- URLhttps://api.contextual.ai/v1/generate
- AuthHTTP bearer
Request body
Response
Successful Response
Changes
- breaking
removed the enum value
knowledgeof the request property// - breaking
removed the enum value
systemof the request property// - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- breaking
- breaking
the
request property's minItems was increased to1 - info
added the new optional request property
- info
added the new
knowledgeenum value to the request property//
- breaking