Skip to content

error code: 502 #180

@LoveLustRaptor

Description

@LoveLustRaptor

cmd console:

INFO:httpx:HTTP Request: POST http://localhost:1234/v1/chat/completions "HTTP/1.1 502 Bad Gateway"
ERROR:root:Error: Error code: 502
INFO:aiogram.event:Update id=572526585 is handled. Duration 1754 ms by bot id=-------------

bot can't find path to localhost:

Received request: GET to /
Unexpected endpoint or method. (GET /). Returning 200 anyway

ai is online but always using the

return response.choices[0].message.content
    except Exception as e:
        logging.error(f"Error: {e}")
        return "text"

what should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions