fix(ai): set correct links in tests, fix headers

This commit is contained in:
2026-04-30 17:02:54 +00:00
parent e43e8378b0
commit 1f1770bd58
4 changed files with 8 additions and 8 deletions

View File

@@ -32,12 +32,12 @@ test_ai_client_init(void** state)
AIProvider* openai = ai_get_provider("openai");
assert_non_null(openai);
assert_string_equal("openai", openai->name);
assert_string_equal("https://api.openai.com/v1/chat/completions", openai->api_url);
assert_string_equal("https://api.openai.com/", openai->api_url);
AIProvider* perplexity = ai_get_provider("perplexity");
assert_non_null(perplexity);
assert_string_equal("perplexity", perplexity->name);
assert_string_equal("https://api.perplexity.ai/v1/chat/completions", perplexity->api_url);
assert_string_equal("https://api.perplexity.ai/", perplexity->api_url);
}
void