Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
xtsea authored Jan 22, 2025
1 parent f0179b3 commit 14cfbf9
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions akenoai/akeno.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import asyncio
import subprocess
import os
import akenoai as at
from base64 import b64decode as m
from base64 import b64decode
import aiohttp
import httpx
import requests
Expand All @@ -24,7 +24,7 @@ def __repr__(self):

class AkenoXJs:
def __init__(self):
self.private_url = b64decode("aHR0cHM6Ly9yYW5keWRldi1yeXUtanMuaGYuc3BhY2U=").decode("utf-8")
self.private_url = at.PrivateToJsurl

def run_code(cmd, **args):
cmd_list = cmd.split(" ")
Expand Down Expand Up @@ -53,12 +53,33 @@ def _get_private_url(self, is_allow_use=False):
else:
return ""

async def best_perfomance_by_gpt(self, **params):
url = self._request_parameters("gpt-old", is_private=True)
async def chatgpt_last(self, **params):
"""params query=query"""
url = self._request_parameters("ai/gpt-old", is_private=True)
async with aiohttp.ClientSession() as session:
async with session.get(url, params=params) as response:
return Box(await response.json() or {})

async def copilot_trip(self, **params):
"""params query=query"""
url = self._request_parameters("ai/copilot2-trip", is_private=True)
async with aiohttp.ClientSession() as session:
async with session.get(url, params=params) as response:
return Box(await response.json() or {})

async def anime_hentai(self):
"""params None"""
url = self._request_parameters("hentai-anime", is_private=True)
async with aiohttp.ClientSession() as session:
async with session.get(url) as response:
return Box(await response.json() or {})

async def maker_carbon(self, **params):
url = self._request_parameters("maker/carbon", is_private=True)
async with aiohttp.ClientSession() as session:
async with session.get(url, params=params) as response:
return await response.read()

AkenoXToJs = AkenoXJs()

class AkenoPlus:
Expand Down

0 comments on commit 14cfbf9

Please sign in to comment.