claude-3-haiku=>claude-3-5-haiku,claude-3.5-haiku-8080=>claude-3-5-sonnet:Worker & Pages => Overveiw => Create to create a new WorkerDeploy to save and update the deploymentWorker & Pages => D1 => Create button to create a new databaseDB here for the variable name. For the database, select the one just initialized. Click Deploy to deploy.API_LOGGINGenabledAPI_SEC_KEYAPI_MODEL_REWRITEmodel1=>model2,model3=>model4wandering-poetry-3106.hash070.workers.devhttps://wandering-poetry-3106.hash070.workers.dev/v1/chat/completions. If you want to access the Messages API interface, you can make a request to https://wandering-poetry-3106.hash070.workers.dev/v1/messages.https://[your Worker address]/logs?key=[your API_SEC_KEY]&format=[export data format]
For example:
https://wandering-poetry-3106.hash070.workers.dev/logs?key=your-secret-key&format=csvjson or csv table.https://[your Worker address]/clear-logs?key=[your API_SEC_KEY]{"success":true,"message":{"en":"Logs cleared successfully","zh":"Logs cleared successfully"}}Address:/logs
Method: GET
parameter:
key: API_SEC_KEY (required)
format: export format (optional, default csv)
csv: CSV format
json: JSON format/logs?key=your-api-key
/logs?key=your-api-key&format=jsonAddress:/clear-logs
Method: GET
parameter:
key: API_SEC_KEY (required)/clear-logs?key=your-api-key