Search

4,227 results found for openai (1379ms)

Code
4,118

import { readFile } from "https://esm.town/v/std/utils/index.ts";
import { Agent, run, webSearchTool } from "npm:@openai/agents@0.3.0";
import { getLeadById, storeLead, updateLeadOutput } from "./db.ts";
if (!ref) sourceValue = "Direct traffic";
else if (/(google\.|bing\.|duckduckgo\.)/i.test(ref)) sourceValue = "SEO";
else if (/(chat\.openai\.com|perplexity\.ai|claude\.ai)/i.test(ref)) {
sourceValue = "IA";
}
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" },
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" },
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" },
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" },
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" },
} // 🤖 Détection IA (ChatGPT, Perplexity, Copilot, Gemini, etc.)
else if (
/(chat\.openai\.com|perplexity\.ai|claude\.ai|bard\.google\.com|gemini\.google\.com|yo
.test(ref)
) {
## Getting started
1. Add `OPENAI_API_KEY` and `GITHUB_TOKEN` to [Environment Variables](./environment-variables)
2. Visit the dashboard at the val's HTTP endpoint
3. Click **Admin****Add Company**
| Variable | Description |
|----------|-------------|
| `OPENAI_API_KEY` | Required for AI lead qualification |
| `GITHUB_TOKEN` | Required for GitHub API access |
import { Agent, run, webSearchTool } from "npm:@openai/agents@0.3.0";
import {
Company,

Vals

95
View more
peterqliu
PineconeIndex
Vector db's on Pinecone, with OpenAI embeddings
Public
openai-agents
stevekrouse
openai-agents
Template to use the OpenAI Agents SDK
Public
Ronsykes
hello-realtime
Sample app for the OpenAI Realtime API
Public
Ronsykes
hello-realtime-rs
Sample app for the OpenAI Realtime API
Public
dcm31
turso_events_estimator
Estimate OpenAI calls from Turso GitHub events
Public

Docs

11
View more
No docs found