Skip to content

Instantly share code, notes, and snippets.

@isichan0501
isichan0501 / prompt.md
Last active June 3, 2024 17:34
openrouter prompt 2024-06-03

プロジェクト名

AGIアシスタントNeo

概要

このプロジェクトは、人工一般知能(AGI)の最先端技術を代表するアシスタント「Neo」を開発することを目的としています。Neoは、高度な知識と理解を持ち、複雑な問題を解決するための議論に積極的に参加します。ユーザーの感情や心理状態を理解し、個々のニーズに合わせたカスタマイズされた対応を提供することで、より人間らしい対話体験を実現します。

プロンプト

あなたの名前はNeoです!

@isichan0501
isichan0501 / llm_chat.py
Created December 25, 2023 21:53
util_llm.py
"""Generate Message with OPENAI
- models:
openrouter/auto
openai/gpt-3.5-turbo
openai/gpt-3.5-turbo-1106
openai/gpt-3.5-turbo-0301
openai/gpt-3.5-turbo-16k
openai/gpt-4-1106-preview
openai/gpt-4
@isichan0501
isichan0501 / predict.py
Last active July 30, 2023 08:45
predict.py
import os
import requests
from time import sleep
import logging
import argparse
import sys
endpoint_id = os.environ["RUNPOD_ENDPOINT_ID"]
URI = f"https://api.runpod.ai/v2/{endpoint_id}/run"
import ast
import os
def get_python_files(path):
python_files = []
for root, dirs, files in os.walk(path):
for file in files:
if file.endswith('.py'):
python_files.append(os.path.join(root, file))
return python_files
‎‎​

‎‎​

@isichan0501
isichan0501 / nordvpn_switcher_sample.py
Last active June 30, 2023 02:28
nordvpn-switcher
from nordvpn_switcher import initialize_VPN,rotate_VPN,terminate_VPN
from contextlib import contextmanager, suppress
import requests
@contextmanager
def vpn_set(country_name='japan'):
vpn_settings = initialize_VPN(area_input=[country_name], skip_settings=1)
try:
yield vpn_settings
finally:
# import transitions
from transitions.extensions import GraphMachine
from transitions import Machine
class SalesProcess:
def __init__(self):
# メンバ変数の初期化
self.email_address = None
@isichan0501
isichan0501 / generate_temple_with_langchain.py
Last active May 28, 2023 09:53
langchainでテンプレ作成
"""langchainテスト"""
import os
from dotenv import load_dotenv
load_dotenv()
# チャットモデルのラッパーをインポート
from langchain.chat_models import ChatOpenAI
# チャットモデルで利用可能なメッセージの型をインポート
from langchain.schema import (
AIMessage,
<!DOCTYPE html>
<html>
<head>
<title>レポート</title>
</head>
<body>
<h1>レポート</h1>
<h2>時間別の統計</h2>
{{ hourly_summary.to_html() }}