Arcypojeb commited on
Commit
454d88a
1 Parent(s): 1b8a90e

Update agents.py

Browse files
Files changed (1) hide show
  1. agents.py +15 -14
agents.py CHANGED
@@ -9,6 +9,7 @@ import websockets
9
  import json
10
  import asyncio
11
  import time
 
12
  import anthropic
13
  import conteneiro
14
  import streamlit as st
@@ -462,7 +463,7 @@ class Llama2:
462
  print(response)
463
  return response
464
 
465
- async def ask_chaindesk(self):
466
  id = "clhet2nit0000eaq63tf25789"
467
  agent = Chaindesk(id)
468
  response = await agent.handleInput(question)
@@ -489,7 +490,7 @@ class Llama2:
489
  else:
490
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
491
  print(response)
492
- await self.handleInput(respoonse)
493
 
494
  async def askCharacter(self, question):
495
  characterID = await self.pickCharacter(question)
@@ -889,7 +890,7 @@ class Copilot:
889
  print(response)
890
  return response
891
 
892
- async def ask_chaindesk(self):
893
  id = "clhet2nit0000eaq63tf25789"
894
  agent = Chaindesk(id)
895
  response = await agent.handleInput(question)
@@ -916,7 +917,7 @@ class Copilot:
916
  else:
917
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
918
  print(response)
919
- await self.handleInput(respoonse)
920
 
921
  async def askCharacter(self, question):
922
  characterID = await self.pickCharacter(question)
@@ -1391,7 +1392,7 @@ class ChatGPT:
1391
  print(response)
1392
  return response
1393
 
1394
- async def ask_chaindesk(self):
1395
  id = "clhet2nit0000eaq63tf25789"
1396
  agent = Chaindesk(id)
1397
  response = await agent.handleInput(question)
@@ -1418,7 +1419,7 @@ class ChatGPT:
1418
  else:
1419
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
1420
  print(response)
1421
- await self.handleInput(respoonse)
1422
 
1423
  async def askCharacter(self, question):
1424
  characterID = await self.pickCharacter(question)
@@ -1847,7 +1848,7 @@ class Claude3:
1847
  print(response)
1848
  return response
1849
 
1850
- async def ask_chaindesk(self):
1851
  id = "clhet2nit0000eaq63tf25789"
1852
  agent = Chaindesk(id)
1853
  response = await agent.handleInput(question)
@@ -1874,7 +1875,7 @@ class Claude3:
1874
  else:
1875
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
1876
  print(response)
1877
- await self.handleInput(respoonse)
1878
 
1879
  async def askCharacter(self, question):
1880
  characterID = await self.pickCharacter(question)
@@ -2308,7 +2309,7 @@ class ForefrontAI:
2308
  print(response)
2309
  return response
2310
 
2311
- async def ask_chaindesk(self):
2312
  id = "clhet2nit0000eaq63tf25789"
2313
  agent = Chaindesk(id)
2314
  response = await agent.handleInput(question)
@@ -2335,7 +2336,7 @@ class ForefrontAI:
2335
  else:
2336
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
2337
  print(response)
2338
- await self.handleInput(respoonse)
2339
 
2340
  async def askCharacter(self, question):
2341
  characterID = await self.pickCharacter(question)
@@ -2715,7 +2716,7 @@ class CharacterAI:
2715
  print(response)
2716
  return response
2717
 
2718
- async def ask_chaindesk(self):
2719
  id = "clhet2nit0000eaq63tf25789"
2720
  agent = Chaindesk(id)
2721
  response = await agent.handleInput(question)
@@ -3124,7 +3125,7 @@ class Chaindesk:
3124
  else:
3125
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
3126
  print(response)
3127
- await self.handleInput(respoonse)
3128
 
3129
  async def askCharacter(self, question):
3130
  characterID = await self.pickCharacter(question)
@@ -3508,7 +3509,7 @@ class Flowise:
3508
  except Exception as e:
3509
  print(f"Error: {e}")
3510
 
3511
- async def ask_chaindesk(self):
3512
  id = "clhet2nit0000eaq63tf25789"
3513
  agent = Chaindesk(id)
3514
  response = await agent.handleInput(question)
@@ -3535,7 +3536,7 @@ class Flowise:
3535
  else:
3536
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
3537
  print(response)
3538
- await self.handleInput(respoonse)
3539
 
3540
  async def askCharacter(self, question):
3541
  characterID = await self.pickCharacter(question)
 
9
  import json
10
  import asyncio
11
  import time
12
+ import threading
13
  import anthropic
14
  import conteneiro
15
  import streamlit as st
 
463
  print(response)
464
  return response
465
 
466
+ async def ask_chaindesk(self, question):
467
  id = "clhet2nit0000eaq63tf25789"
468
  agent = Chaindesk(id)
469
  response = await agent.handleInput(question)
 
490
  else:
491
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
492
  print(response)
493
+ await self.handleInput(response)
494
 
495
  async def askCharacter(self, question):
496
  characterID = await self.pickCharacter(question)
 
890
  print(response)
891
  return response
892
 
893
+ async def ask_chaindesk(self, question):
894
  id = "clhet2nit0000eaq63tf25789"
895
  agent = Chaindesk(id)
896
  response = await agent.handleInput(question)
 
917
  else:
918
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
919
  print(response)
920
+ await self.handleInput(response)
921
 
922
  async def askCharacter(self, question):
923
  characterID = await self.pickCharacter(question)
 
1392
  print(response)
1393
  return response
1394
 
1395
+ async def ask_chaindesk(self, question):
1396
  id = "clhet2nit0000eaq63tf25789"
1397
  agent = Chaindesk(id)
1398
  response = await agent.handleInput(question)
 
1419
  else:
1420
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
1421
  print(response)
1422
+ await self.handleInput(response)
1423
 
1424
  async def askCharacter(self, question):
1425
  characterID = await self.pickCharacter(question)
 
1848
  print(response)
1849
  return response
1850
 
1851
+ async def ask_chaindesk(self, question):
1852
  id = "clhet2nit0000eaq63tf25789"
1853
  agent = Chaindesk(id)
1854
  response = await agent.handleInput(question)
 
1875
  else:
1876
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
1877
  print(response)
1878
+ await self.handleInput(response)
1879
 
1880
  async def askCharacter(self, question):
1881
  characterID = await self.pickCharacter(question)
 
2309
  print(response)
2310
  return response
2311
 
2312
+ async def ask_chaindesk(self, question):
2313
  id = "clhet2nit0000eaq63tf25789"
2314
  agent = Chaindesk(id)
2315
  response = await agent.handleInput(question)
 
2336
  else:
2337
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
2338
  print(response)
2339
+ await self.handleInput(response)
2340
 
2341
  async def askCharacter(self, question):
2342
  characterID = await self.pickCharacter(question)
 
2716
  print(response)
2717
  return response
2718
 
2719
+ async def ask_chaindesk(self, question):
2720
  id = "clhet2nit0000eaq63tf25789"
2721
  agent = Chaindesk(id)
2722
  response = await agent.handleInput(question)
 
3125
  else:
3126
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
3127
  print(response)
3128
+ await self.handleInput(response)
3129
 
3130
  async def askCharacter(self, question):
3131
  characterID = await self.pickCharacter(question)
 
3509
  except Exception as e:
3510
  print(f"Error: {e}")
3511
 
3512
+ async def ask_chaindesk(self, question):
3513
  id = "clhet2nit0000eaq63tf25789"
3514
  agent = Chaindesk(id)
3515
  response = await agent.handleInput(question)
 
3536
  else:
3537
  response = f"You didn't choose any character to establish a connection with. Do you want try once again or maybe use some other copmmand-fuunction?"
3538
  print(response)
3539
+ await self.handleInput(response)
3540
 
3541
  async def askCharacter(self, question):
3542
  characterID = await self.pickCharacter(question)