#Error during inspect module

1 messages · Page 1 of 1 (latest)

ornate cradle
#

I am getting this error and could not make any sense of it. There is no type called AcceptanceFloat though my class is called Acceptance.

✘ inspecting module 0.0s
! get module name: input: failed to get schema: failed to get schema introspection JSON: introspection query failed: input: __schema.types[17].fields[4].type.ofType panic while resolving __Type.ofType: unknown type: AcceptanceFloat

plush narwhal
#

Could you share your module's code please? It will be easier to debug

ornate cradle
#

Hi, I was able to resolve this

The was the piece of code that was causing the issue. Apparently dagger don't like float type.

@object_type
class GPTDeploymentConfig:
delay_min: int = field(default=None)
delay_max: int = field(default=None)
payload_1_weight: float= field(default=None)
payload_2_weight: float= field(default=None)
payload_3_weight: float= field(default=None)
retry_after_min: int = field(default=None)
retry_after_max: int = field(default=None)
error_code_weight: dict[str, float] = field(default=None)
replicas: int = 1

Changing the float to str fixed my issue.

high veldt
#

@plush narwhal you're looking at this one right?