openai / openai/openai-java

Web search find action type mismatch

Closed
#526 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug spec
Dominant language
Kotlin
Stars
1.5k
Forks
264
Avg merge
9h 46m
Merged PRs (30d)
96

Description

In documentation and sdk it's find, but actually it's find_in_page.

https://github.com/openai/openai-java/blob/d910267a97748ce1a193712da03011a65e21277c/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseFunctionWebSearch.kt#L1012

curl -s "https://api.openai.com/v1/responses/resp_686f89f9d13881a082a26db88d31c4ad060a7e338fd86a3a" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $OPENAI_API_KEY" | grep -C5 find
    {
      "id": "ws_686f8a0fc82081a09cca742d0b794a3b060a7e338fd86a3a",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "find_in_page",
        "pattern": "history",
        "url": "https://en.wikipedia.org/wiki/Principle_of_double_effect"
      }
    },
    {
--
    {
      "id": "ws_686f8a173dd081a09dab5c14d0e39b09060a7e338fd86a3a",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "find_in_page",
        "pattern": "File:",
        "url": "https://en.wikipedia.org/wiki/Principle_of_double_effect"
      }
    },
    {

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseFunctionWebSearch.kt around line 1012 and compare it with the linked Responses API documentation. Confirm that the SDK and documentation use the observed find_in_page action type rather than find.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.