Search

3,261 results found for openai (1044ms)

Code
3,166

];
// Call OpenAI Responses API (preferred in latest SDKs)
// You can also use chat.completions.create; Responses is now the primary surface.
// const ai = await openai.responses.create({
// model: "gpt-4.1-mini",
// 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: [
{
import process from "node:process";
import { OpenAI } from "npm:openai";
const POE_API_KEYS = [
];
function createPoeClient(apiKey: string): OpenAI {
return new OpenAI({
apiKey: apiKey,
baseURL: "https://api.poe.com/v1",
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 process from "node:process";
import { OpenAI } from "npm:openai";
const IMAGE_COST = 400;
}
function createPoeClient(apiKey: string): OpenAI {
return new OpenAI({
apiKey: apiKey || "YOUR_POE_API_KEY",
baseURL: "https://api.poe.com/v1",
}
function createOpenRouterClient(): OpenAI {
return new OpenAI({
apiKey: OPENROUTER_API_KEY || "YOUR_OPENROUTER_API_KEY",
baseURL: "https://openrouter.ai/api/v1",
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 process from "node:process";
import { OpenAI } from "npm:openai";
const IMAGE_COST = 400;
}
function createPoeClient(apiKey: string): OpenAI {
return new OpenAI({
apiKey: apiKey || "YOUR_POE_API_KEY",
baseURL: "https://api.poe.com/v1",
import process from "node:process";
import { OpenAI } from "npm:openai";
const IMAGE_COST = 400;
}
function createPoeClient(apiKey: string): OpenAI {
return new OpenAI({
apiKey: apiKey || "YOUR_POE_API_KEY",
baseURL: "https://api.poe.com/v1",
import process from "node:process";
import { OpenAI } from "npm:openai";
const IMAGE_COST = 500;
].filter(Boolean);
function createPoeClient(apiKey: string): OpenAI {
return new OpenAI({
apiKey: apiKey || "YOUR_POE_API_KEY",
baseURL: "https://api.poe.com/v1",
import process from "node:process";
import { OpenAI } from "npm:openai";
const IMAGE_COST = 400;
}
function createPoeClient(apiKey: string): OpenAI {
return new OpenAI({
apiKey: apiKey || "YOUR_POE_API_KEY",
baseURL: "https://api.poe.com/v1",

Vals

84
View more
nbbaier
openai-usage
jubertioai
hello-realtime
Sample app for the OpenAI Realtime API
ledudu
openai-gemini
 
jasim
kannada-teacher-openai-realtime-voice
 
a01
openaiproxy
 
OpenAI. Copy page Copy page. Copy this page as Markdown for LLMs. View as Markdown View this page as plain text. Open in ChatGPT Ask questions about this page. Use
= $("p:nth-of-type(2)").first().text(); console.log(intro); Logs OpenAI is an American artificial intelligence (AI) research organization consisting of the non-profit OpenAI, Inc.[5] registered in Delaware and its for-profit subsidiary OpenAI Global, LLC.[6] One
await browser.close(); console.log(intro); Logs "OpenAI is an American artificial intelligence (AI) research laboratory consisting of the non-profit OpenAI Incorporated and its for-profit subsidiary corporation OpenAI Limited Partnership. OpenAI conducts AI
AI. SQLite Store and retrieve structured data Blob Storage Store and retrieve any data OpenAI Use the OpenAI API Email Send emails API and SDK. Section titled “API and SDK”
code. Receiving an attachment and then sending it along. Receiving an attachment, sending it to OpenAI, and then emailing it. Headers. Section titled “Headers” You can set custom headers in
discordWebhookWeatherHyd - send weather updates to Discord. weather_forecast_in_the_morning - weather forecast on Telegram. weatherBot - OpenAI Weather Bot via function calling. aqi - email alerts when AQI is unhealthy near
} from "https://esm.town/v/patrickjm/gpt3?v=4"; export let librarySecret = gpt3({ prompt: "what is the meaning of life?", openAiKey: Deno.env.get("openai"), }); Import security. If you’re importing someone else’s code, read the code first
You’ll probably want to: Register a new Slash Command. Connect your bot to APIs like OpenAI’s GPT or Dall-E. Come join us in the Val Town Discord if you get