Skip to content

Commit

Permalink
create mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
aqwvinh committed Mar 1, 2024
1 parent c27e82c commit bfb657b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Binary file added docs/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Welcome to GenAI Impact

GenAI Impact is an open-source project built by [Data For Good](https://dataforgood.fr/) to highlight GenAI tools' energy consumption.

## Installation

pip install genai_impact


## Basic example for OpenAI

from genai_impact.client_wrapper import OpenAI

client = OpenAI()

response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[
{"role": "user", "content": "Hello World!"}
]
)

print(response.impacts)

0 comments on commit bfb657b

Please sign in to comment.