🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::DeepSeek类 参考

#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端点

构造及析构函数说明

◆ DeepSeek()

ast::DeepSeek::DeepSeek ( )

默认构造函数

从环境变量读取API密钥,若未设置baseUrl则使用DeepSeek默认端点


该类的文档由以下文件生成: