Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add logprobs to ModelSettings#971

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
zain wants to merge2 commits intoopenai:main
base:main
Choose a base branch
Loading
fromzain:main
Open

Add logprobs to ModelSettings#971

zain wants to merge2 commits intoopenai:mainfromzain:main

Conversation

zain
Copy link

Now that logprobs are available in the Responses API, I thought it might be nice to have it be available for agents.

@@ -114,6 +114,20 @@ english_agent = Agent(
)
```

Responses API でトークンの対数確率を取得したい場合は、
Copy link
Member

Choose a reason for hiding this comment

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

We generate translated docs using script, so please revert this change.

@@ -109,6 +109,20 @@ english_agent = Agent(
)
```

You can also request token log probabilities when using the Responses API by
Copy link
Member

Choose a reason for hiding this comment

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

Once this property is available at the top level, it will be listedhere, which is linked from this page. So, could you revert this one too?

@@ -107,6 +108,10 @@ class ModelSettings:
"""Additional output data to include in the model response.
[include parameter](https://platform.openai.com/docs/api-reference/responses/create#responses-create-include)"""

top_logprobs: int | None = None
Copy link
Member

Choose a reason for hiding this comment

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

this would be used in not only responses, but LiteLLM and Chat Completions, so can you update the following files as well?

  • src/agents/models/openai_chatcompletions.py
  • src/agents/extensions/models/litellm_model.py

@seratchseratch changed the titleAdd logprobsAdd logprobs to ModelSettingsJul 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@seratchseratchseratch requested changes

Requested changes must be addressed to merge this pull request.

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@zain@seratch

[8]ページ先頭

©2009-2025 Movatter.jp