Search

3,346 results found for openai (2176ms)

Code
3,251

- `github.ts` - GitHub API integration for fetching commits and PR data
- `llm.ts` - OpenAI integration for generating release notes
- `types.ts` - Type definitions for the backend
### POST /api/generate-notes
Generates user-facing release notes from commit and PR data using OpenAI.
**Request Body:**
import { OpenAI } from "https://esm.town/v/std/openai";
import { selectAppropriateModel, processWithAI } from "./modelSelection.ts";
import {
} from "../database/queries.ts";
const openai = new OpenAI();
/**
- ValTown serverless functions
- SQLite database for persistent storage
- OpenAI API for AI-powered analysis and recommendations
- Email integration for notifications
- Browser-based dashboard with interactive UI
console.log(123);
import openai from "openai";
console.log("openai imported");
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" },
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function translateToEnglishWithOpenAI(text: string) {
const openai = new OpenAI();
const completion = await openai.chat.completions.create({
messages: [
{
import { OpenAI } from "https://esm.town/v/std/openai";
const openai = new OpenAI();
const completion = await openai.chat.completions.create({
messages: [
{
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" },