Skip to content

An error occurred while posting eval results #99

@DsDastgheib

Description

@DsDastgheib

Hi,
I was following these examples and testing groundedness for a single datapoint using the following code:

response = athina.evals.Groundedness(model="gpt-4o-mini").run(context=contexts, response=response, chat_history=chat_history)

The response seems ok, but there is a weird thing which is the following that appears in the console

An error occurred while posting eval results [
   {
     "code": "invalid_type",
     "expected": "string",
     "received": "undefined",
     "path": [
       0,
       "org_id"
     ],
     "message": "Required"
   },
   {
     "code": "invalid_type",
     "expected": "string",
     "received": "undefined",
     "path": [
       0,
       "workspace_slug"
     ],
     "message": "Required"
   }
 ] (Extra Info: No Details)
 An error occurred while posting eval results [
   {
     "code": "invalid_type",
     "expected": "string",
     "received": "undefined",
     "path": [
       0,
       "org_id"
     ],
     "message": "Required"
   },
   {
     "code": "invalid_type",
     "expected": "string",
     "received": "undefined",
     "path": [
       0,
       "workspace_slug"
     ],
     "message": "Required"
   }
 ] (Extra Info: No Details)
 An error occurred while posting eval results [
   {
     "code": "invalid_type",
     "expected": "string",
     "received": "undefined",
     "path": [
       0,
       "org_id"
     ],
     "message": "Required"
   },
   {
     "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      0,
      "workspace_slug"
    ],
    "message": "Required"
  }
] (Extra Info: No Details)
An error occurred while posting eval results [
    {
      "code": "invalid_type",
      "expected": "string",
      "received": "undefined",
      "path": [
        0,
        "org_id"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      0,
      "workspace_slug"
    ],
    "message": "Required"
  }
] (Extra Info: No Details)

I wish to know if I'm doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions