![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/mageworx/module-open-ai/Api/ |
<?php namespace MageWorx\OpenAI\Api; interface ModelInterface { /** * Type of selected model * * @return string */ public function getType(): string; /** * Get maximum allowed length of context * * @return int */ public function getMaxContextLength(): int; /** * Path to send request (based on selected model; without leading slash) * * @return string */ public function getPath(): string; /** * Path to send request (based on selected model; without leading slash) * * @param string $value * @return ModelInterface */ public function setPath(string $value): ModelInterface; /** * @param RequestInterface $request * @param OptionsInterface $options * @return ResponseInterface */ public function sendRequest(RequestInterface $request, OptionsInterface $options): ResponseInterface; /** * Add request to queue. * Return id of queue item. * * @param RequestInterface $request * @param OptionsInterface $options * @return int */ public function addToQueue(RequestInterface $request, OptionsInterface $options): int; }