|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <DeepSeek.hpp>
类 ast::DeepSeek 继承关系图:Public 成员函数 | |
| DeepSeek () | |
Public 成员函数 继承自 ast::OpenAI | |
| OpenAI () | |
| OpenAI (const std::string &apiKey, const std::string &baseUrl) | |
| errc_t | chat (const JsonValue &request, JsonValue &response) override |
| errc_t | chatStream (const JsonValue &request, ChatEventHandler &handler, JsonValue &accumulatedResult) override |
| void | setApiKey (StringView apiKey) |
| void | setBaseUrl (StringView baseUrl) |
| JsonValue | chat (const JsonValue &request) |
Public 成员函数 继承自 ast::LLMClient | |
| JsonValue | chat (const JsonValue &request) |
额外继承的成员函数 | |
Protected 成员函数 继承自 ast::OpenAI | |
| const std::string & | apiKey () const |
| const std::string & | baseUrl () const |
DeepSeek API客户端
兼容OpenAI规范,默认使用DeepSeek API端点
| ast::DeepSeek::DeepSeek | ( | ) |
默认构造函数
从环境变量读取API密钥,若未设置baseUrl则使用DeepSeek默认端点