Skip to content

Commit

Permalink
fastapi_poe: add bot_query_id (#114)
Browse files Browse the repository at this point in the history
* fastapi_poe: add bot_query_id

this is a field that will be required for bot creators to pass along in
the point auth/capture requests as part of pay-by-context. this field
will be encrypted.

Reviewers:

Test Plan:

Differential Revision:

Asana Tasks:

Screenshot:

CC:

Deploy To:

* fastapi_poe: add bot_query_id

this is a field that will be required for bot creators to pass along in
the point auth/capture requests as part of pay-by-context. this field
will be encrypted.

Reviewers:

Test Plan:

Differential Revision:

Asana Tasks:

Screenshot:

CC:

Deploy To:
  • Loading branch information
zintegy authored Jul 19, 2024
1 parent 93c0cf0 commit c8dbd3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fastapi_poe/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ class QueryRequest(BaseRequest):
- `skip_system_prompt` (`bool = False`): Whether to use any system prompting or not.
- `logit_bias` (`Dict[str, float] = {}`)
- `stop_sequences` (`List[str] = []`)
- `language_code` (`str` = "en"`): BCP 47 language code of the user's client.
- `language_code` (`str = "en"`): BCP 47 language code of the user's client.
- `bot_query_id` (`str = ""`): an identifier representing a bot query.
"""

Expand All @@ -115,6 +116,7 @@ class QueryRequest(BaseRequest):
logit_bias: Dict[str, float] = {}
stop_sequences: List[str] = []
language_code: str = "en"
bot_query_id: Identifier = ""


class SettingsRequest(BaseRequest):
Expand Down

0 comments on commit c8dbd3f

Please sign in to comment.