Skip to content

Commit

Permalink
Merge branch 'main' into dsb/flush-as-track-argument
Browse files Browse the repository at this point in the history
  • Loading branch information
andrescrz authored Sep 16, 2024
2 parents b209cf1 + 7f86dee commit 387a80f
Show file tree
Hide file tree
Showing 63 changed files with 1,868 additions and 386 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish_helm_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
fetch-depth: 0

- name: Install Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
uses: azure/setup-helm@v4.2.0
with:
version: v3.13.0

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/sdk-e2e-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: SDK E2E Tests
run-name: "SDK E2E Tests ${{ github.ref_name }} by @${{ github.actor }}"
on:
workflow_dispatch:

jobs:
run-e2e:
name: SDK E2E Tests
runs-on: ubuntu-latest
steps:
- name: echo
run: echo
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<h1 align="center" style="border-bottom: none">
<div>
<a href="https://www.comet.com/site/products/opik?utm_source=opik&utm_medium=github&utm_content=website_button">
<img src="/apps/opik-documentation/documentation/static/img/logo.svg" width="80" />
<br>
Opik
</a>
<a href="https://www.comet.com/site/products/opik?utm_source=opik&utm_medium=github&utm_content=website_button"><picture>
<source media="(prefers-color-scheme: dark)" srcset="/apps/opik-documentation/documentation/static/img/logo-dark-mode.svg">
<source media="(prefers-color-scheme: light)" srcset="/apps/opik-documentation/documentation/static/img/opik-logo.svg">
<img alt="Comet Opik logo" src="/apps/opik-documentation/documentation/static/img/opik-logo.svg" width="200" />
</picture></a>
<br>
Opik
</div>
Open-source end-to-end LLM Development Platform<br>
</h1>
Expand Down
2 changes: 1 addition & 1 deletion apps/opik-backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ EXPOSE 3003
ARG OPIK_VERSION
ENV OPIK_VERSION=${OPIK_VERSION}

ENTRYPOINT ["./entrypoint.sh"]
CMD ["./entrypoint.sh"]
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,21 @@ from openai import OpenAI
openai_client = OpenAI()
openai_client = track_openai(openai_client)

response = openai_client.Completion.create(
prompt="Hello, world!"

response = openai_client.chat.completions.create(
model="gpt-3.5-turbo",
prompt="Hello, world!",
messages=[
{"role":"user", "content":prompt}
],
temperature=0.7,
max_tokens=100,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)

print(completion.choices[0].message.content)
```

The `track_openai` will automatically track and log the API call, including the input prompt, model used, and response generated. You can view these logs in your Comet project dashboard.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions apps/opik-documentation/documentation/static/img/opik-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 387a80f

Please sign in to comment.