goblin-agents 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/llm/providers.js +5 -1
- package/package.json +1 -1
package/lib/llm/providers.js
CHANGED
|
@@ -148,7 +148,11 @@ class OpenAIProvider extends LLMProvider {
|
|
|
148
148
|
delete chatRequest.format;
|
|
149
149
|
}
|
|
150
150
|
const query = `${this.#baseUrl}/chat/completions`;
|
|
151
|
-
const chat = await this.#openAI._post(query, chatRequest
|
|
151
|
+
const chat = await this.#openAI._post(query, chatRequest, {
|
|
152
|
+
retry: {
|
|
153
|
+
methods: ['POST'],
|
|
154
|
+
},
|
|
155
|
+
});
|
|
152
156
|
const {choices} = chat;
|
|
153
157
|
if (chat.error) {
|
|
154
158
|
const err = new Error(
|