Skip to content

Commit 8f98c89

Browse files
author
Mike Wasserman
committed
Restore expectedInputTypes for measureContextUsage method
1 parent 3531e7d commit 8f98c89

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

index.bs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,8 @@ The following are the [=event handlers=] (and their corresponding [=event handle
469469

470470
1. If |options|["{{LanguageModelPromptOptions/omitResponseConstraintInput}}"] is true and |options|["{{LanguageModelPromptOptions/responseConstraint}}"] does not [=map/exist=], then throw a {{TypeError}}.
471471

472+
1. Let |expectedInputTypes| be the result of [=get the expected content types=] given [=this=]'s [=LanguageModel/expected inputs=].
473+
472474
1. Let |messages| be the result of [=validating and canonicalizing a prompt=] given |input|, |expectedInputTypes|, and false.
473475

474476
1. If |options|["{{LanguageModelPromptOptions/responseConstraint}}"] [=map/exists=] and is not null and |options|["{{LanguageModelPromptOptions/omitResponseConstraintInput}}"] is false, then implementations may insert an [=implementation-defined=] {{LanguageModelMessage}} to |messages| to guide the model's behavior.

0 commit comments

Comments
 (0)