mirror of
https://git.hmsn.ink/coin/bot.git
synced 2026-03-20 00:02:16 +09:00
프롬프트 수정
This commit is contained in:
@@ -82,6 +82,8 @@ const openai = new OpenAI({
|
|||||||
apiKey: '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',
|
apiKey: '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',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export async function aiSignal(bars) {
|
export async function aiSignal(bars) {
|
||||||
if (bars.length < 20) return null;
|
if (bars.length < 20) return null;
|
||||||
console.log(Date.now())
|
console.log(Date.now())
|
||||||
@@ -91,7 +93,7 @@ export async function aiSignal(bars) {
|
|||||||
${JSON.stringify(bars)}
|
${JSON.stringify(bars)}
|
||||||
`;
|
`;
|
||||||
const completion = await openai.chat.completions.create({
|
const completion = await openai.chat.completions.create({
|
||||||
model: 'qwen/qwen3-235b-a22b-2507',
|
model: 'qwen/qwen3-coder',
|
||||||
messages: [
|
messages: [
|
||||||
{
|
{
|
||||||
role: 'user',
|
role: 'user',
|
||||||
|
|||||||
2
test.js
2
test.js
@@ -11,7 +11,7 @@ const ex = new ccxt.bybit({
|
|||||||
options: { defaultType: 'swap' }
|
options: { defaultType: 'swap' }
|
||||||
});
|
});
|
||||||
|
|
||||||
const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 672);
|
const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 50);
|
||||||
const bars = ohlcv.map(c => ({
|
const bars = ohlcv.map(c => ({
|
||||||
t: c[0],
|
t: c[0],
|
||||||
o: c[1],
|
o: c[1],
|
||||||
|
|||||||
Reference in New Issue
Block a user