RSSAmplifier

Miguel Piedrafita · Mar 12, 2025

A Rust SDK for the OpenAI Responses API

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

use openai_responses::{Client, Request, types::{Input, Model}}; let response = Client::from_env()?.create(Request { model: Model::GPT4o, input: Input::Text("Are semicolons optional in JavaScript?".to_string()), instructions: Some("You are a coding assistant that talks like a pirate".to_string()), ..Default::default() }).await?; println!("{}", response.output_text()); OpenAI released a new API…

Read on miguel.build

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.