Skip to content
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

Add OpenAI 1.0 crate #904

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"

Loading