-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize perplexity logic for streaming end detection across OpenAI…
… compatible models (#286) * Use perplexity logic to check cerabras streaming end indication * Check openai data contains [DONE] first * Check response choices before acessing choices objects * Ensure reaching end stream in the last object * Specific conditions for openai and mistral * Add parameterized for openai compatible tests * Include the newline characters without using a backslash in the f-string * Check for usage to determine reaching the end of cerebras stream * Update using gpt4-o-mini for openai tests * Add cerebras secret to ci test * Remove usage condition
- Loading branch information
Showing
4 changed files
with
96 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters