Search

3,371 results found for openai (1949ms)

Code
3,276

import { Hono } from "npm:hono@4.4.12";
// @ts-ignore
import { OpenAI } from "https://esm.town/v/std/openai";
const app = new Hono();
}
const openai = new OpenAI();
const response = await openai.chat.completions.create({
model: "gpt-4o",
messages: [
import { email } from "https://esm.town/v/std/email";
import { extractValInfo } from "https://esm.town/v/stevekrouse/extractValInfo";
import { OpenAI } from "npm:openai";
function stripHtmlBackticks(html: string): string {
export default async function(e: Email) {
const openai = new OpenAI();
console.log(`from: ${e.from} to: ${e.to} subject: ${e.subject}, cc: ${e.cc}, bcc: ${e.bcc}`);
}
const summary = await openai.chat.completions.create({
messages: [
{
// @ts-ignore
import { OpenAI } from "https://esm.town/v/std/openai";
// This is the list of textures the AI can choose from.
if (req.method === "POST") {
try {
const openai = new OpenAI();
const body = await req.json();
const prompt = body.prompt;
}
const response = await openai.chat.completions.create({
model: "gpt-4o",
messages: [
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
});
}
const openai = new OpenAI();
try {
}
const stream = await openai.chat.completions.create(body);
if (!body.stream) {
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
});
}
const openai = new OpenAI();
try {
}
const stream = await openai.chat.completions.create(body);
if (!body.stream) {
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
});
}
const openai = new OpenAI();
try {
}
const stream = await openai.chat.completions.create(body);
if (!body.stream) {
<div>
<span class="font-semibold">AI Market Insight:</span>
<span>AI sector valuations showing 15% QoQ growth with OpenAI leading market consolidation tr
</div>
</div>
<tbody class="bg-white divide-y divide-gray-200">
<tr><td class="px-6 py-4 text-sm font-medium text-gray-900">SpaceX</
r><td class="px-6 py-4 text-sm font-medium text-gray-900">OpenAI</td><td class="px-6 py-4 text-s
<tr><td class="px-6 py-4 text-sm font-medium text-gray-900">Stripe</
<tr><td class="px-6 py-4 text-sm font-medium text-gray-900">xAI</td>
Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or _3) to cre
### OpenAI
```ts
import { OpenAI } from "https://esm.town/v/std/openai";
const openai = new OpenAI();
const completion = await openai.chat.completions.create({
messages: [
{ role: "user", content: "Say hello in a creative way" },
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function () {
const openai = new OpenAI();
const careerUrls = [
console.log(`Fetched HTML from ${url}:`, html);
const completion = await openai.chat.completions.create({
messages: [
{ role: "user", content: `Summarize the job listings from the following HTML content f
Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or _3) to cre
### OpenAI
```ts
import { OpenAI } from "https://esm.town/v/std/openai";
const openai = new OpenAI();
const completion = await openai.chat.completions.create({
messages: [
{ role: "user", content: "Say hello in a creative way" },