Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type P ¶
type P struct {
// contains filtered or unexported fields
}
P processes inference tasks.
func (*P) AddOrUpdateEngineStatus ¶ added in v0.115.0
func (p *P) AddOrUpdateEngineStatus( srv engineCommunicator, engineStatus *v1.EngineStatus, )
AddOrUpdateEngineStatus adds or updates the engine status.
func (*P) ProcessTaskResult ¶ added in v0.121.0
func (p *P) ProcessTaskResult( taskResult *v1.TaskResult, ) error
ProcessTaskResult processes the task result.
type Task ¶
type Task struct { ID string Req *v1.CreateChatCompletionRequest Header http.Header RespCh chan *http.Response ErrCh chan error // contains filtered or unexported fields }
Task is an inference task. TODO(kenji): Consider preserving the request context as well.
Click to show internal directories.
Click to hide internal directories.