Skip to content

Commit

Permalink
Fixed issue with parsing OpenRouter's requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrankov committed Dec 5, 2024
1 parent c8a73cd commit 1bb8d6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/openai-compatible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ export class OpenAICompatibleAIProvider implements AIProvider {
if (message === "[DONE]") {
break;
}
if (line.startsWith(":")) {
continue;
}
try {
const parsed = JSON.parse(message);
combined +=
Expand Down

0 comments on commit 1bb8d6e

Please sign in to comment.