-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance OpenAI API Specification with Interactive Documentation and Examples #305
Open
davidtkeane
wants to merge
20
commits into
openai:master
Choose a base branch
from
davidtkeane:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…d I got the yaml working on m browser. Very happy. Added error images and a depreciation image due to an install message. npm install instructions improved and also npm audit and fix added for more instructions.
… server so the users dont have to download?
…dules will need to be installed.
…ing the images to the image folder
…hat Completions. I also added instructions on how to use the CURl code by pasting into the terminal.
…changed [Chat Completions](#Chat) to [Chat Completions](#Chat-Completions) and made sure the header is Chat Completions. I will try this as I am learning
…e to the code works, the YAML link belofre did, so fngerscrossedgit
…thon code example
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Title:
Enhance OpenAI API Specification with Interactive Documentation and Examples
Pull Request Description:
Overview:
This pull request introduces significant enhancements to the OpenAI API specification project by adding interactive documentation, installation instructions for npm packages, a local HTTP server setup, and practical examples with images. The goal is to make the project more accessible and user-friendly for developers looking to integrate with OpenAI's powerful language models.
Key Changes:
Interactive Documentation with Swagger UI:
index.html
file to serve the OpenAPI specification (openapi.yaml
) using Swagger UI. This allows users to visualize and interact with the API endpoints directly in their browser.swagger-ui-dist
) and configuring it to display the API documentation.Installation Instructions for npm Packages:
http-server
andswagger-ui-dist
. This ensures that users can easily set up their environment to view and interact with the API documentation.Local HTTP Server Setup:
http-server
to serve theindex.html
file. This allows users to access the interactive API documentation locally by navigating tohttp://localhost:8080
in their web browser.Practical Examples with Images:
Benefits:
Conclusion:
These changes aim to significantly improve the usability and accessibility of the OpenAI API specification project. By providing interactive documentation, clear installation instructions, and practical examples with visual aids, we hope to empower more developers to successfully integrate and leverage OpenAI's powerful language models.
We welcome any feedback and suggestions to further enhance these contributions. Thank you for considering this pull request.