Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
linzhanjun authored and github-actions[bot] committed Dec 28, 2023
1 parent d021449 commit 5aee021
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OpenAi.php
Original file line number Diff line number Diff line change
@@ -32,7 +32,6 @@ class OpenAi
private array $config = [];
private array $configs = [];


public function __construct($OPENAI_API_KEY = '')
{
$this->contentTypes = [
@@ -56,6 +55,7 @@ protected function getConfig()
if (empty($driver_config)) {
throw new Exception('No default driver');
}

return $this->polling($driver_config);
}

@@ -80,6 +80,7 @@ protected function polling($config)
$current = $token_number % count($config);
$current_config = $config[$current] ?? $config[0];
}

return $current_config;
}

0 comments on commit 5aee021

Please sign in to comment.