Skip to content

Instantly share code, notes, and snippets.

View saikonuru's full-sized avatar

Sairam saikonuru

  • Self
  • Hyderabad
  • 01:17 (UTC +05:30)
View GitHub Profile
#Building an OpenAI API request
# Create the OpenAI client
client = OpenAI(api_key="<OPENAI_API_TOKEN>")
# Create a request to the Chat Completions endpoint
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{"role": "user",
"content": "Write a polite reply accepting an AI Engineer job offer."}]
@saikonuru
saikonuru / contracts...1_Storage.sol
Created June 30, 2024 08:56
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
* @custom:dev-run-script ./scripts/deploy_with_ethers.ts
*/
contract Storage {