Skip to content

Instantly share code, notes, and snippets.

import json
from openai import OpenAI
client = OpenAI(
# 如果没有配置环境变量,请用阿里云百炼API Key替换:api_key="sk-xxx"
api_key="sk-yes",
base_url="https://dashscope-us.aliyuncs.com/compatible-mode/v1",
)
import logging
logging.basicConfig(level="DEBUG")
from openai import OpenAI
import os
client = OpenAI(
# 如果没有配置环境变量,请用阿里云百炼API Key替换:api_key="sk-xxx"
api_key="sk-",
base_url="https://dashscope-us.aliyuncs.com/compatible-mode/v1",
diff --git a/orion/__init__.py b/orion/__init__.py
index 7191d3248..bea10788f 100644
--- a/orion/__init__.py
+++ b/orion/__init__.py
@@ -10,11 +10,15 @@ import os
import time
import logging
+t0 = time.time()
logger = logging.getLogger(__name__)
diff --git a/orion/__init__.py b/orion/__init__.py
index 7191d3248..bea10788f 100644
--- a/orion/__init__.py
+++ b/orion/__init__.py
@@ -10,11 +10,15 @@ import os
import time
import logging
+t0 = time.time()
logger = logging.getLogger(__name__)
category: General Information-Basic information about Toki
question: The Compatible Platforms of Toki? / Where can I use Toki?
answer: You can use Toki on LINE, Telegram, Toki App.
category: General Information-Basic information about Toki
question: Do you have an app?
answer: Oh! You found us! We do have Toki APP available on App store. Just check it out and discover more cool features!
category: General Information-Basic information about Toki
question: How do we start? / How can I use Toki? / I am trying it for the first time. How to use Toki? / Can you send me instructions on how to use Toki? / Give me tutorials on how to use you. / Can Toki reschedule tasks or move scheduled items?
import argparse
import json
import logging
from datetime import datetime, timedelta
from typing import Dict, List, Optional
import requests
from sqlalchemy.dialects.postgresql import insert
from orion.biz.models.meta_ads import MetaAds

Checking prometheus configuration and port accessibility in orion namespace... Found 91 unique apps with running pods (with app label)

Results

App Name Sample Pod Prometheus Config Status Accessibility
calendar-reminder-reloader-baikal-eci calendar-reminder-reloader-baikal-eci-29380328-4wbh9 No Config Error: command terminated with exit code 7 ❌ NOT ACCESSIBLE
dash-consumer-evaluation dash-consumer-evaluation-c9777fc7-gq9fj Port: 8000, Path: /metrics 200 ✅ ACCESSIBLE
dash-orion-api dash-orion-api-6f6569cb66-jgqcb Port: 8000, Path: prometheus/metrics/metrics 200 ✅ ACCESSIBLE
{
"sub": "Rt5zQWwZ3XArAx7hx+nRZg==",
"avatar_url": "https://files.yestoki.com/avatar/img_7cf876b3-1f63-4bda-a2c8-3beb433a74a8.jpg",
"name": "@wooparadog",
"given_name": null,
"family_name": null,
"middle_name": null,
"nickname": null,
"preferred_username": null,
"profile": null,
diff --git a/PKGBUILD b/PKGBUILD
index f582a43..2b976bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
_pkgname=awesome
pkgname=${_pkgname}-git
-pkgver=4.3.1683.g691e36425
+pkgver=4.3.1684.gf009815cb
diff --git a/PKGBUILD b/PKGBUILD
index f582a43..2b976bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
_pkgname=awesome
pkgname=${_pkgname}-git
-pkgver=4.3.1683.g691e36425
+pkgver=4.3.1684.gf009815cb