Skip to content

Commit

Permalink
Merge pull request #23 from fetchai/fix/personality_key
Browse files Browse the repository at this point in the history
Fix key to request personality when creating a session
  • Loading branch information
qati authored Oct 24, 2024
2 parents 5295a12 + c41aafd commit f1fc96d
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 f1fc96d

Please sign in to comment.