Skip to content

Instantly share code, notes, and snippets.

import datetime
import logging
from typing import List, Optional
from orion.biz.common import UserTrafficData
from orion.biz.handlers.message.message import query_message
from orion.biz.handlers.user import get_user, update_user
from orion.biz.models.user_traffic import UserTraffic
from orion.common import Role
from orion.utils.cache import redis_cacher
# Mostly a copy of feishu-bin's PKGBUILD with s/feishu/lark/
# Maintainer: Sabit Maulana <sbtmul@gmail.com>
pkgname=larksuite-bin
pkgver=7.11.9
#_pkgrel=24
_pkghash=21bed243
_pkgtyp=stable
pkgrel=1
pkgdesc="Linux client of Lark Suite"
arch=('x86_64')
# Mostly a copy of feishu-bin's PKGBUILD with s/feishu/lark/
# Maintainer: Sabit Maulana <sbtmul@gmail.com>
pkgname=larksuite-bin
pkgver=7.11.9
#_pkgrel=24
_pkghash=21bed243
_pkgtyp=stable
pkgrel=1
pkgdesc="Linux client of Lark Suite"
arch=('x86_64')
'Africa/Abidjan' : 'Greenwich Standard Time'
'Africa/Accra' : 'Greenwich Standard Time'
'Africa/Addis_Ababa' : 'E. Africa Standard Time'
'Africa/Algiers' : 'W. Central Africa Standard Time'
'Africa/Asmara' : 'E. Africa Standard Time'
'Africa/Asmera' : 'E. Africa Standard Time'
'Africa/Bamako' : 'Greenwich Standard Time'
'Africa/Bangui' : 'W. Central Africa Standard Time'
'Africa/Banjul' : 'Greenwich Standard Time'
'Africa/Bissau' : 'Greenwich Standard Time'
'Africa/Abidjan' : 'Greenwich Standard Time'.
'Africa/Accra' : 'Greenwich Standard Time'.
'Africa/Addis_Ababa' : 'E. Africa Standard Time'.
'Africa/Algiers' : 'W. Central Africa Standard Time'.
'Africa/Asmara' : 'E. Africa Standard Time'.
'Africa/Asmera' : 'E. Africa Standard Time'.
'Africa/Bamako' : 'Greenwich Standard Time'.
'Africa/Bangui' : 'W. Central Africa Standard Time'.
'Africa/Banjul' : 'Greenwich Standard Time'.
'Africa/Bissau' : 'Greenwich Standard Time'.
Traceback (most recent call last):
File "/home/wooparadog/Codes/github.com/orion-arm-ai/orion/.venv/lib/python3.11/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Traceback (most recent call last):
File "/home/wooparadog/Codes/github.com/orion-arm-ai/orion/.venv/lib/python3.11/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Traceback (most recent call last):
File "/home/wooparadog/Codes/github.com/orion-arm-ai/orion/modelbesttest.py", line 38, in <module>
chat_completion = client.chat.completions.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wooparadog/Codes/github.com/orion-arm-ai/orion/.venv/lib/python3.11/site-packages/openai/_utils/_utils.py", line 271, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/wooparadog/Codes/github.com/orion-arm-ai/orion/.venv/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 659, in create
return self._post(
^^^^^^^^^^^
{
"responses": [
{
"fullTextAnnotation": {
"pages": [
{
"blocks": [
{
"blockType": "TEXT",
"boundingBox": {
from typing import Dict, List, Optional
from orion.dash.common import DefaultTopLevelLabels
from orion.dash.label.label import create_new_label
from orion.dash.label.model import Label
LABLES = [
DefaultTopLevelLabels.PRIVATE,
DefaultTopLevelLabels.EVALUATION_TEMPLATE,
{