Skip to content

release: 0.1.0-alpha.5 #216

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

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

stainless-app[bot]
Copy link
Contributor

@stainless-app stainless-app bot commented May 29, 2024

Automated Release PR

0.1.0-alpha.5 (2024-06-05)

Full Changelog: v0.1.0-alpha.4...v0.1.0-alpha.5

Features

  • completes OPEN-6020 Refactor manual part of the Python SDK (9cb9cc1)

Chores


This Pull Request has been generated automatically as part of Stainless's release process.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request (see details).

More technical details can be found at stainless-api/release-please.

Copy link

linear bot commented May 29, 2024

OPEN-6020 Refactor manual part of the Python SDK

Likely something like:

# the __init__.py in `/openlayer` acts as a façade, exposing all the other functionalities (which are organized in submodules such as `/api`, `/integrations`, etc.)

# Hitting the backend API (auto-generated)
from openalayer import Openlayer

# client is used to interact with the backend
client = Openlayer() 
client.projects.inference_pipelines.list(id="...")
client.projects.list()
client.projects.inference_pipelines.stream_data(id="...", data=...)

# Tracking/tracing functionalities
from openlayer import trace

trace()
def my_function():
   ...

from openlayer import track_openai, track_azure_openai, track_mistral, track_perplexity, ...

# Do not modify in place. Return a modified copy of the clients
# Replace "monitor" with "track" -> can be used in dev as well. Maybe use "trace" instead of "track"?
# Simpler to have them as functions, instead of a class. 
# Verb in function name indicates what it does
openai_client = track_openai(openai.OpenAI()) or trace_openai(...)
azure_openai_client = track_azure_openai(openai.AzureOpenAI()) or trace_azure_openai(...)

# Keep "callback handler" name -- that's what LangChain uses in their docs
from openlayer import langchain_callback

chain = ChatCompletionChain(llm=llm, prompt=prompt, callbacks=[langchain_callback.OpenlayerHandler()])

# /development and /monitoring as submodules -- not exposed via the façade

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 4a49306 to cd71c52 Compare June 5, 2024 19:50
@stainless-app stainless-app bot closed this Jun 5, 2024
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from d2077cf to 600e707 Compare June 5, 2024 19:55
@stainless-app stainless-app bot reopened this Jun 5, 2024
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from d2b8410 to 0668954 Compare June 5, 2024 19:57
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from c549cf9 to 600247b Compare June 5, 2024 20:02
@stainless-app stainless-app bot merged commit 0dbf539 into main Jun 5, 2024
2 checks passed
@stainless-app stainless-app bot deleted the release-please--branches--main--changes--next branch June 5, 2024 20:04
Copy link
Contributor Author

stainless-app bot commented Jun 5, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant