Skip to content

Commit

Permalink
Update api server to work with updated mlflow endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Nov 14, 2024
1 parent 1c49bd7 commit abeee76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/mlflow/mlflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func (mlflow *client) doCall(req *request, resp interface{}) error {
return err
}

httpReq.Header.Set("Content-Type", "application/json")
httpResp, err := mlflow.httpClient.Do(httpReq)
if err != nil {
return err
Expand Down
4 changes: 2 additions & 2 deletions api/mlflow/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ type Run struct {
type Info struct {
RunID string `json:"run_id"`
ExperimentID string `json:"experiment_id"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
StartTime int `json:"start_time"`
EndTime int `json:"end_time"`
ArtifactURI string `json:"artifact_uri"`
LifecycleStage string `json:"lifecycle_stage"`
Status string `json:"status"`
Expand Down

0 comments on commit abeee76

Please sign in to comment.