@@ -177,7 +177,7 @@ export class Messages extends APIResource {
177177 * const messageTokensCount =
178178 * await client.messages.countTokens({
179179 * messages: [{ content: 'string', role: 'user' }],
180- * model: 'claude-opus-4-6 ',
180+ * model: 'claude-mythos-preview ',
181181 * });
182182 * ```
183183 */
@@ -1075,6 +1075,7 @@ export interface Metadata {
10751075 * details and options.
10761076 */
10771077export type Model =
1078+ | 'claude-mythos-preview'
10781079 | 'claude-opus-4-6'
10791080 | 'claude-sonnet-4-6'
10801081 | 'claude-haiku-4-5'
@@ -2814,14 +2815,9 @@ export interface MessageCreateParamsBase {
28142815 system ?: string | Array < TextBlockParam > ;
28152816
28162817 /**
2817- * Amount of randomness injected into the response.
2818- *
2819- * Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
2820- * for analytical / multiple choice, and closer to `1.0` for creative and
2821- * generative tasks.
2822- *
2823- * Note that even with `temperature` of `0.0`, the results will not be fully
2824- * deterministic.
2818+ * @deprecated Deprecated. Models released after Claude Opus 4.6 do not support
2819+ * setting temperature. A value of 1.0 of will be accepted for backwards
2820+ * compatibility, all other values will be rejected with a 400 error.
28252821 */
28262822 temperature ?: number ;
28272823
@@ -2924,26 +2920,15 @@ export interface MessageCreateParamsBase {
29242920 tools ?: Array < ToolUnion > ;
29252921
29262922 /**
2927- * Only sample from the top K options for each subsequent token.
2928- *
2929- * Used to remove "long tail" low probability responses.
2930- * [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
2931- *
2932- * Recommended for advanced use cases only. You usually only need to use
2933- * `temperature`.
2923+ * @deprecated Deprecated. Models released after Claude Opus 4.6 do not accept
2924+ * top_k; any value will be rejected with a 400 error.
29342925 */
29352926 top_k ?: number ;
29362927
29372928 /**
2938- * Use nucleus sampling.
2939- *
2940- * In nucleus sampling, we compute the cumulative distribution over all the options
2941- * for each subsequent token in decreasing probability order and cut it off once it
2942- * reaches a particular probability specified by `top_p`. You should either alter
2943- * `temperature` or `top_p`, but not both.
2944- *
2945- * Recommended for advanced use cases only. You usually only need to use
2946- * `temperature`.
2929+ * @deprecated Deprecated. Models released after Claude Opus 4.6 do not support
2930+ * setting top_p. A value >= 0.99 will be accepted for backwards compatibility, all
2931+ * other values will be rejected with a 400 error.
29472932 */
29482933 top_p ?: number ;
29492934}
0 commit comments