feat: add Kimi Code and web APIs
This commit is contained in:
@@ -876,6 +876,11 @@ const char *cst_effort_wire(const char *provider, const char *model,
|
||||
pthread_mutex_unlock(&g_mu);
|
||||
if (strcmp(mode, "passthrough") == 0)
|
||||
return effort;
|
||||
if (strcmp(mode, "kimi") == 0) {
|
||||
/* Kimi K3 accepts low/high/max; the older K2 thinking models use the
|
||||
* separate `thinking` object and only need a valid effort selection. */
|
||||
return strcmp(effort, "medium") == 0 ? "low" : effort;
|
||||
}
|
||||
if (strcmp(mode, "openai") == 0) {
|
||||
cst_model_info_t mi;
|
||||
cst_model_info(provider, model, &mi);
|
||||
|
||||
Reference in New Issue
Block a user