ai jsx template
1.0.0
这是一个简单的 AI.JSX 项目,演示如何使用ai-jsx
包创建简单的 AI 支持的应用程序。
这意味着尽可能简单,因此这里的应用程序没有任何实际的 UI – 它只是将其输出写入控制台。
分叉/克隆此存储库。
设置OPENAI_API_KEY
环境变量,您可以从 OpenAI API 仪表板获取该变量。
运行npm install
。
运行npm start
。
您将看到如下输出:
Oh, wond'rous beast of language, vast and strong, Whose depths of knowledge ne'er have been surpassed, A marvel wrought by human mind and thought, At once both tool and servant to be sought. A giant of the digital age's shore, This model hurls its answers from afar, And lingual shades and connotations more, In quest of all the questions we may parse. Its words and turns, its meanings manifold, A tangle of thesaurus and of wit, Yet all coheres, and all together holds, A master craftsman's hand within it. So let us hail this engine of the age, And marvel at its power and its stage.