Skip to content

mark inference.{embeddings,chat_completion,completion} deprecated #248

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mattf
Copy link
Contributor

@mattf mattf commented Jun 25, 2025

What does this PR do?

mark inference.{embeddings,chat_completion,completion} deprecated per meta-llama/llama-stack#2365

Test Plan

pytest tests/test_deprecated_inference.py

@@ -408,6 +409,11 @@ def chat_completion(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> ChatCompletionResponse | Stream[ChatCompletionResponseStreamChunk]:
warnings.warn(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, this is actually auto-generated code. I think we'd need to look into stainless to see if this can be done.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this something i can do?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattf unfortunately not since stainless is controlled by us (meta) right now. we are working to make this be community owned also.

@ashwinb
Copy link
Contributor

ashwinb commented Jul 17, 2025

I think we might be able to get this landed. But could you make the same PR for the https://github.com/llamastack/llama-stack-client-python/ repository? I will archive this repository now.

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.

3 participants