Skip to content
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

AssistantRequestBuilder.build() ignores toolResources value #381

Open
bay73 opened this issue Sep 13, 2024 · 0 comments
Open

AssistantRequestBuilder.build() ignores toolResources value #381

bay73 opened this issue Sep 13, 2024 · 0 comments

Comments

@bay73
Copy link

bay73 commented Sep 13, 2024

Description

After setting toolResources in AssistantRequestBuilder it remains empty when building request from it.

Steps to Reproduce

    val builder = AssistantRequestBuilder().apply {
        this.name = "name"
        this.model = ModelId("gpt-4o")
        temperature = 0.1
        responseFormat = AssistantResponseFormat.AUTO
        tools = listOf(AssistantTool.FileSearch)
        toolResources = ToolResources(fileSearch = FileSearchResources(listOf(vectorStoreId)))
    }
    val request = builder.build()
    assert(request.toolResources != null)

Environment

  • openai-kotlin version: 3.8.2
  • Kotlin version: 2.0.20
  • OS: Windows 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant