Code Monkey home page Code Monkey logo

chatgpt-plugin-samples-aspnetcore's Introduction

ChatGPT Plugin Samples for .NET

This repository contains .NET samples for building ChatGPT plugins using C# and minimal APIs. The examples are based on OpenAI's ChatGPT plugin examples and have been adapted for the .NET platform.

Solution Structure

The solution consists of a single project, Gpt.Plugins.TodoList, which contains a minimal API implementation for a simple Todo list plugin for ChatGPT, with no authentication.

Gpt.Plugins.TodoList

This project demonstrates how to build a simple ChatGPT plugin using .NET 7 and C# 11 with minimal APIs, top-level statements, and records.

Getting Started

To run the Gpt.Plugin.TodoList project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/r3core/chatgpt-plugin-samples-dotnet.git
  2. Navigate to the Gpt.Plugins.TodoList directory:

    cd chatgpt-plugin-samples-dotnet/Gpt.Plugins.TodoList
  3. Run the project:

    dotnet run

    This will launch the minimal API on the default port, usually 5000 for HTTP and 5001 for HTTPS.

  4. Test the API endpoints using a tool like Postman or curl. The available endpoints are:

  • POST /todos/{username}
  • GET /todos/{username}
  • DELETE /todos/{username}

Please note that this example is intended for educational purposes and should not be used as-is for production applications.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.