Skip to content

Commit

Permalink
Add OpenAI 1.0 crate
Browse files Browse the repository at this point in the history
  • Loading branch information
stcarrez committed Sep 30, 2023
1 parent 1484149 commit ee664bd
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions index/op/openai/openai-1.0.0.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
description = "OpenAI client library"
tags = ["rest", "web", "api", "openapi", "openai"]
name = "openai"
version = "1.0.0"
licenses = "Apache-2.0"
authors = ["[email protected]"]
maintainers = ["[email protected]"]
maintainers-logins = ["stcarrez"]
project-files = ["openai.gpr"]
website = "https://gitlab.com/stcarrez/ada-openai"
long-description = """
[Ada OpenAI](https://gitlab.com/stcarrez/ada-openai) provides an Ada API to make requests on the
[OpenAI](https://openai.com/) models allowing an Ada application to access the [GPT-3](https://platform.openai.com/docs/models/gpt-3-5),
[GPT-4](https://platform.openai.com/docs/models/gpt-4),
[DALL.E](https://platform.openai.com/docs/models/dall-e)
and other AI models.
The library was generated by the [OpenAPI](https://github.com/OpenAPITools/openapi-generator) code generator from the
OpenAPI description of the OpenAI service and it uses the [OpenAPI Ada](https://github.com/stcarrez/swagger-ada) library
to make HTTP requests and perform JSON serialization and deserialization.
## Alire setup
```
alr with openai
```
For the HTTP connection, you can either use AWS or CURL and run one of the following commands:
```
alr with utilada_curl
alr with utilada_aws
```
## Links
- [OpenAI API reference](https://platform.openai.com/docs/api-reference)
- Ada example: [OpenAI Image Generation](https://gitlab.com/stcarrez/openapi-image)
- Ada example: [OpenAI Chat](https://gitlab.com/stcarrez/openai-chat)
- Ada example: [OpenAI Completion](https://gitlab.com/stcarrez/openapi-completion)
"""

[[depends-on]]
openapi = "~0.7.0"

[gpr-externals]
OPENAI_BUILD = ["distrib", "debug", "optimize", "profile", "coverage"]
OPENAI_LIBRARY_TYPE = ["relocatable", "static", "static-pic"]

[configuration]
disabled = true

[origin]
commit = "0f7f852189670501caa4f6150e412636e3b27d73"
url = "git+https://gitlab.com/stcarrez/ada-openai.git"

0 comments on commit ee664bd

Please sign in to comment.