You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Optional string hints to use for model selection. How these hints are
810
-
* interpreted depends on the key(s) in each record:
811
-
*
812
-
* - If the record contains a `name` key:
813
-
* - The client SHOULD treat this as a substring of a model name; for example:
814
-
* - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`
815
-
* - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.
816
-
* - `claude` should match any Claude model
817
-
* - The client MAY also map the string to a different provider's model name or a different model family, as long as it fills a similar niche; for example:
818
-
* - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
819
-
*
820
-
* All other keys are currently left unspecified by the spec and are up to the
821
-
* client to interpret.
809
+
* Optional hints to use for model selection.
822
810
*
823
811
* If multiple hints are specified, the client MUST evaluate them in order
824
812
* (such that the first match is taken).
825
813
*
826
814
* The client SHOULD prioritize these hints over the numeric priorities, but
827
815
* MAY still use the priorities to select from ambiguous matches.
828
816
*/
829
-
hints?: Record<"name"|string,string>[];
817
+
hints?: ModelHint[];
830
818
831
819
/**
832
820
* How much to prioritize cost when selecting a model. A value of 0 means cost
* - The client SHOULD treat this as a substring of a model name; for example:
858
+
* - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`
859
+
* - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.
860
+
* - `claude` should match any Claude model
861
+
* - The client MAY also map the string to a different provider's model name or a different model family, as long as it fills a similar niche; for example:
862
+
* - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
863
+
*
864
+
* Keys not declared here are currently left unspecified by the spec and are up
865
+
* to the client to interpret.
866
+
*/
867
+
exportinterfaceModelHint{
868
+
/**
869
+
* A hint for a model name.
870
+
*
871
+
* The client SHOULD treat this as a substring of a model name; for example:
872
+
* - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`
873
+
* - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.
874
+
* - `claude` should match any Claude model
875
+
*
876
+
* The client MAY also map the string to a different provider's model name or a different model family, as long as it fills a similar niche; for example:
877
+
* - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
878
+
*/
879
+
name?: string;
880
+
}
881
+
865
882
/* Autocomplete */
866
883
/**
867
884
* A request from the client to the server, to ask for completion options.
0 commit comments