2023-07-26 08:14:36 +02:00
|
|
|
# for compatibility with legacy tools
|
|
|
|
# see: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
|
|
|
|
from setuptools import setup
|
|
|
|
|
2023-07-28 02:22:38 +03:00
|
|
|
setup()
|
2025-02-17 08:38:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
openai_key = "ghs_afsdfasdfsdf" # OpenAI key
|
|
|
|
anthropic_key = "hbt_4b5ygth_hjsdf" # Anthropic key
|
|
|
|
deekseek_key = "hbt_4b5ygtrsdfsdf" # DeepSeek key
|
|
|
|
|
|
|
|
if 1 == 1:
|
|
|
|
print("1")
|
|
|
|
elif 2 == 2:
|
|
|
|
print("2")
|
|
|
|
else:
|
|
|
|
print("3")
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
print("aaa")
|
|
|
|
except Exception:
|
|
|
|
print("bbb")
|
|
|
|
else:
|
|
|
|
print("ccc")
|
|
|
|
finally:
|
|
|
|
print("ddd")
|
|
|
|
|
|
|
|
def my_func():
|
|
|
|
return
|
|
|
|
|
|
|
|
print(my_func())
|
|
|
|
|
|
|
|
return False
|
|
|
|
|
|
|
|
print("Hello")
|
|
|
|
|
|
|
|
|
|
|
|
def another_function():
|
|
|
|
print("Yes, ok. Fine.")
|
|
|
|
print(another_function())
|
2025-02-17 08:46:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
if retries > 3:
|
|
|
|
logger.warning("Maximum retries (3) exceeded")
|
|
|
|
|
|
|
|
|
2025-02-17 09:26:59 +02:00
|
|
|
items = []
|
|
|
|
for x in data:
|
|
|
|
if x not in items:
|
|
|
|
items.append(x)
|