feat: 添加 Grok AI、Ollama AI

This commit is contained in:
kuaifan
2025-02-21 17:04:59 +08:00
parent 5a7f4efa91
commit 9c1482f9e9
11 changed files with 125 additions and 36 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ class Extranet
}
}
$res = Ihttp::ihttp_request('https://api.openai.com/v1/chat/completions', json_encode([
"model" => "gpt-3.5-turbo",
"model" => "gpt-4o-mini",
"messages" => [
[
"role" => "system",
@@ -132,7 +132,7 @@ class Extranet
}
}
$res = Ihttp::ihttp_request('https://api.openai.com/v1/chat/completions', json_encode([
"model" => "gpt-3.5-turbo",
"model" => "gpt-4o-mini",
"messages" => [
[
"role" => "system",