M
Mastra2mo ago
Henadz

Where I can put model hyperparameters using Mastra Client SDK, Mastra, Open AI compatible API?

This is hard to find documentation about the model tunning using Mastra. Thank you!
2 Replies
Mastra Triager
Mastra Triager2mo ago
GitHub
[DISCORD:1433851457961988096] Where I can put model hyperparameters...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1433851457961988096 This is hard to find documentation about the model tunning using Mastra. Thank you!
Abhi Aiyer
Abhi Aiyer3w ago
Hi @Henadz ! The modelSettings attribute on generate/ stream can handle that for ya! https://mastra.ai/reference/agents/generate you can pass temperature, etc there.
Reference: Agent.generate() | Agents | Mastra Docs
Documentation for the Agent.generate() method in Mastra agents, which enables non-streaming generation of responses with enhanced capabilities.

Did you find this page helpful?