bitflicker64 commented on code in PR #572: URL: https://github.com/apache/hugegraph-doc/pull/572#discussion_r4589991825
########## content/en/docs/quickstart/hugegraph-ai/rest-api.md: ########## @@ -289,13 +296,38 @@ Ollama requests still require the common fields; `api_key` and `api_base` can be `reranker_type` accepts `cohere` or `siliconflow`. Cohere also accepts `cohere_base_url`. -All four configuration endpoints return 201 on success. They change the process's active configuration and may write values back to `.env`. `/config/llm`, `/config/embedding`, and `/config/rerank` restore the previous values if applying a change raises; `/config/graph` does not. +The four configuration endpoints return 201 on success. Saved application connections go to writable `settings.yaml`, not the bootstrap `.env`. +Model saves validate format without contacting the provider. Invalid model configuration returns 400; a storage-write failure returns 503. Review Comment: Minor: a body that fails `LLMConfigRequest` validation, such as `"llm_type": "litellm"` or a `port` outside 1-65535, returns FastAPI's 422 before `save_model` maps errors to 400; upstream `test_removed_litellm_provider_is_not_accepted` asserts 422. State that request-schema errors return 422 and rejected settings, such as a destination change without a key, return 400, and mirror it in `content/cn/docs/quickstart/hugegraph-ai/rest-api.md`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
