MCPcopy
hub / github.com/1Panel-dev/MaxKB / get

Method get

apps/chat/views/chat.py:191–199  ·  view source on GitHub ↗
(self, request: Request)

Source from the content-addressed store, hash-verified

189 tags=[_('Chat')] # type: ignore
190 )
191 def get(self, request: Request):
192 ip_address = _get_ip_address(request)
193 return result.success(OpenChatSerializers(
194 data={'application_id': request.auth.application_id,
195 'chat_user_id': request.auth.chat_user_id, 'chat_user_type': request.auth.chat_user_type,
196 'ip_address': ip_address,
197 'source': {
198 'type': ChatSourceChoices.API_CALL.value if request.auth.chat_user_type == ChatUserType.APPLICATION_API_KEY.value else ChatSourceChoices.ONLINE.value},
199 'debug': False}).open())
200
201
202class CaptchaView(APIView):

Callers 15

start_servicesFunction · 0.45
devFunction · 0.45
authMethod · 0.45
profileMethod · 0.45
profileMethod · 0.45
voteMethod · 0.45
get_querysetMethod · 0.45
is_validMethod · 0.45
edit_abstractMethod · 0.45
logic_deleteMethod · 0.45
batch_logic_deleteMethod · 0.45
is_validMethod · 0.45

Calls 4

_get_ip_addressFunction · 0.90
OpenChatSerializersClass · 0.90
successMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected