Skip to content

Conversation

OskarStark
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
Docs? no
Issues --
License MIT

@OskarStark OskarStark self-assigned this Sep 4, 2025
@carsonbot carsonbot added Bug Something isn't working Platform Issues & PRs about the AI Platform component Status: Needs Review labels Sep 4, 2025
Comment on lines 104 to 117
#[TestDox('Sends correct HTTP request with null provider and task parameters')]
public function testModelsRequestParametersWithNullValues()
{
$httpClient = new MockHttpClient(function (string $method, string $url, array $options) {
$this->assertSame('GET', $method);
$this->assertStringStartsWith('https://huggingface.co/api/models', $url);
$this->assertArrayHasKey('query', $options);
$this->assertNull($options['query']['inference_provider']);
$this->assertNull($options['query']['pipeline_tag']);

return new JsonMockResponse([]);
});

$apiClient = new ApiClient($httpClient);
$apiClient->models(null, null);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this make sense @chr-hertel or should we validate, that at least one needs to be set?

@OskarStark OskarStark force-pushed the add-huggingface-tests branch 2 times, most recently from 8f0d8de to 43072f6 Compare September 5, 2025 05:39
@OskarStark OskarStark force-pushed the add-huggingface-tests branch from a49cd46 to eb67ca8 Compare September 5, 2025 07:55
@OskarStark OskarStark merged commit 37d01a9 into symfony:main Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Platform Issues & PRs about the AI Platform component Status: Needs Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants