2023-10-01から1ヶ月間の記事一覧
qiita.com
app.chatpro.jp
py -m pip install langchain py -m pip install openai import os os.environ["OPENAI_API_KEY"] = "API KEY" from langchain.llms import OpenAI # LLMラッパーを初期化 llm = OpenAI(temperature=0.9) # 会社名を生成する質問を作成 text = "カラフルなソ…
techblog.ap-com.co.jp role:system 与えられたインプットに対し、以下の一連の処理をシーケンシャルに実行してください。 次の処理に進む際ですが、作業を止めフィードバックを要求してください。 # 処理 ## 処理1 以下の問題を分析し、どのような観点で議…
あなたは優秀なプログラマです。 GPT4 APIを使った新しいプログラムを考えたいと思います。 そこで、あなたにお願いがあります。お願いは以下の1~6のプロセスからなります。 まずGPT4 APIの強みを言語化して教えてください その強みを活かしやすい応用方法…
www.vector.co.jp
news.yahoo.co.jp claude.ai
japan.cnet.com 私は日本のIT企業、LINEヤフーの社員です。LINEヤフーはLINEとヤフーが合併して生まれた新しい会社です。LINEとヤフーの強みの両方を活かした、新しい事業を考えたいと思います。 そこで、あなたにお願いがあります。お願いは以下の1~6のプ…
import os import openai # APIキーの設定 openai.api_key = 'API KEY' # GPT-3モデルの指定 model_engine = "gpt-3.5-turbo" messages = [{"role": "system", "content": "You are a helpful assistant."}] def gpt(user_input): messages.append({"role": …
note.com from gpt3z import gpt a=gpt("AIについて本を書こうと思う。五章構成で英語の目次と各章の概要を書け") b=gpt(f"{a} この目次の第一章を日本語で書け") c=gpt(f"{a} この目次の第二章を日本語で書け") d=gpt(f"{a} この目次の第三章を日本語で書け…
import os import openai # APIキーの設定 openai.api_key = 'API KEY' # GPT-4モデルの指定 #model_engine = "gpt-3.5-turbo" model_engine = "gpt-4" messages = [{"role": "system", "content": "You are a helpful assistant."}] def gptChat(user_input…
import os import openai # APIキーの設定 openai.api_key = 'API KEY' # GPT-3モデルの指定 model_engine = "gpt-3.5-turbo" messages = [{"role": "system", "content": "You are a helpful assistant."}] def gptChat(user_input): messages.append({"rol…
togetter.com
PerspectiveImageCorrection whitebreath.hatenablog.com
qiita.com
business.nikkei.com
levtech.jp
note.com A young girl is enjoying a new trendy lunch menu, a 'Tofu and Vegetable Stir-fry Bowl', at a popular cafe in Tokyo. The cafe is bustling with people, and the girl's face lights up with delight as she takes her first bite. The scen…
import sys count = 0 for line in sys.stdin: count = count + 1 print(count) import sys dic={} for line in sys.stdin: col = line.split(",") print(col[1]) if col[1] not in dic.keys(): dic[col[1]] = 1 else: dic[col[1]] += 1 print(dic) import s…