Skip to content

Commit

Permalink
Fix key to request personality when creating a session
Browse files Browse the repository at this point in the history
  • Loading branch information
ManueleSigona committed Oct 17, 2024
1 parent 5295a12 commit c41aafd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ai_engine_sdk/api_models/api_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ApiNewSessionRequest(BaseModel):
email: str
functionGroup: Optional[str] = None
preferencesEnabled: bool
requestModel: str
requestedModel: str


class ApiUserJsonMessage(ApiMessagePayload):
Expand Down
2 changes: 1 addition & 1 deletion ai_engine_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ async def create_session(self, function_group: str, opts: Optional[dict] = None)
email=opts.get('email') if opts else "",
functionGroup=function_group,
preferencesEnabled=False,
requestModel=opts.get('model') if opts and 'model' in opts else DefaultModelId
requestedModel=opts.get('model') if opts and 'model' in opts else DefaultModelId
)
response = await make_api_request(
api_base_url=self._api_base_url,
Expand Down

0 comments on commit c41aafd

Please sign in to comment.