@@ -47,9 +47,10 @@ export class Prompts extends APIResource {
4747 }
4848
4949 /**
50- * Fetches the model configuration parameters for a specified prompt, including
51- * penalty settings, response format, and the model messages rendered with the
52- * given variables mapped to the set LLM provider.
50+ * Fetches the configured model parameters and messages rendered with the provided
51+ * variables mapped to the set LLM provider. This endpoint abstracts the need to
52+ * handle mapping between different providers, while still allowing direct calls to
53+ * the providers.
5354 */
5455 getParameters (
5556 id : string ,
@@ -538,14 +539,9 @@ export namespace PromptConfiguration {
538539 maxTokens : number | null ;
539540
540541 /**
541- * Example: "gpt-3.5-turbo"
542+ * The name of the model for the provider.
542543 */
543- modelName : string ;
544-
545- /**
546- * The provider of the provided model.
547- */
548- modelProvider : 'ANTHROPIC' | 'OPENAI' ;
544+ name : string ;
549545
550546 parallelToolCalls : boolean ;
551547
@@ -554,6 +550,11 @@ export namespace PromptConfiguration {
554550 */
555551 presencePenalty : number ;
556552
553+ /**
554+ * The LLM model provider.
555+ */
556+ provider : 'ANTHROPIC' | 'OPENAI' ;
557+
557558 /**
558559 * Example: PromptResponseFormat.TEXT
559560 */
@@ -716,14 +717,9 @@ export namespace PromptCreateParams {
716717 maxTokens : number | null ;
717718
718719 /**
719- * Example: "gpt-3.5-turbo"
720+ * The name of the model for the provider.
720721 */
721- modelName : string ;
722-
723- /**
724- * The provider of the provided model.
725- */
726- modelProvider : 'ANTHROPIC' | 'OPENAI' ;
722+ name : string ;
727723
728724 parallelToolCalls : boolean ;
729725
@@ -732,6 +728,11 @@ export namespace PromptCreateParams {
732728 */
733729 presencePenalty : number ;
734730
731+ /**
732+ * The LLM model provider.
733+ */
734+ provider : 'ANTHROPIC' | 'OPENAI' ;
735+
735736 /**
736737 * Example: PromptResponseFormat.TEXT
737738 */
@@ -866,14 +867,9 @@ export namespace PromptUpdateParams {
866867 maxTokens : number | null ;
867868
868869 /**
869- * Example: "gpt-3.5-turbo"
870- */
871- modelName : string ;
872-
873- /**
874- * The provider of the provided model.
870+ * The name of the model for the provider.
875871 */
876- modelProvider : 'ANTHROPIC' | 'OPENAI' ;
872+ name : string ;
877873
878874 parallelToolCalls : boolean ;
879875
@@ -882,6 +878,11 @@ export namespace PromptUpdateParams {
882878 */
883879 presencePenalty : number ;
884880
881+ /**
882+ * The LLM model provider.
883+ */
884+ provider : 'ANTHROPIC' | 'OPENAI' ;
885+
885886 /**
886887 * Example: PromptResponseFormat.TEXT
887888 */
0 commit comments