feat: Add OpenRouter provider

This commit is contained in:
Petr Mironychev
2024-12-10 21:27:56 +01:00
parent 882047d7b2
commit c070fd5cfd
8 changed files with 233 additions and 111 deletions

View File

@ -46,13 +46,11 @@ public:
bool done{false};
Usage usage;
static OpenAIMessage fromJson(const QByteArray &data);
QString getContent() const;
bool hasError() const;
bool isDone() const;
private:
static OpenAIMessage fromJsonObject(const QJsonObject &obj);
static OpenAIMessage fromJson(const QJsonObject &obj);
};
} // namespace QodeAssist::LLMCore