{"id":18486116,"url":"https://github.com/mathsgod/sense-nova-client","last_synced_at":"2026-02-13T05:35:33.089Z","repository":{"id":246495640,"uuid":"821303361","full_name":"mathsgod/sense-nova-client","owner":"mathsgod","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-14T03:26:21.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T12:57:39.413Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathsgod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-28T08:39:46.000Z","updated_at":"2024-08-14T03:25:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"e99f684b-6770-4a97-8af9-2b908e2e27db","html_url":"https://github.com/mathsgod/sense-nova-client","commit_stats":null,"previous_names":["mathsgod/sense-nova-client"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mathsgod/sense-nova-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fsense-nova-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fsense-nova-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fsense-nova-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fsense-nova-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathsgod","download_url":"https://codeload.github.com/mathsgod/sense-nova-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fsense-nova-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274250227,"owners_count":25249395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T12:47:53.762Z","updated_at":"2026-02-13T05:35:33.029Z","avatar_url":"https://github.com/mathsgod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SenseNova php client\n\n### Authentication\n\n```php\n\nuse SenseNovo\\Client;\n\n$client = new Client('your_access_key', 'your_secret_key');\n\n```\n\n\n\n### Chat completions\n\n\n```php\n\nprint_r($client-\u003echatCompletions()-\u003ecreate([\n    \"model\" =\u003e \"SenseChat-5\",\n    \"messages\"=\u003e[\n        [\n            \"role\"=\u003e\"user\",\n            \"content\"=\u003e\"Hello, how are you?\"\n        ]\n    ]\n]));\n\n```\n\n\n#### Chat completions tools call\n\nTool file\n```php\nuse SenseNova\\ChatCompletions\\Attributes\\Parameter;\nuse SenseNova\\ChatCompletions\\Attributes\\Tool;\n\nclass MyTool\n{\n    public $price = \"$799\";\n\n    #[Tool(description: 'Get the price of iphone')]\n    public function getIPhonePrice(#[Parameter(\"model of the phone\")] string $model)\n    {\n        return [\"price\" =\u003e $this-\u003eprice, \"model\" =\u003e $model];\n    }\n\n    #[Tool(description: 'Get the release date of iphone')]\n    public function getIPhoneReleaseDate(#[Parameter(\"model of the phone\")] string $model)\n    {\n        return [\"date\" =\u003e \"2023-01-01\", \"model\" =\u003e $model];\n    }\n}\n```\n\n```php\n$tool=new MyTool();\n$cc = $client-\u003echatCompletions();\n$cc-\u003esetModel(\"SenseChat-5\");\n$cc-\u003eaddTool(Closure::fromCallable([$tool, \"getIPhonePrice\"]));\n$cc-\u003eaddTool(Closure::fromCallable([$tool, \"getIPhoneReleaseDate\"]));\n\n$cc-\u003eaddMessage([\"role\" =\u003e \"user\", \"content\" =\u003e \"get iphone 14 price and release date\"]);\n\nprint_R($cc-\u003erun());\n```\n\n\n\n### Models\n\n```php\nprint_R($client-\u003emodels()-\u003elist());\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fsense-nova-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathsgod%2Fsense-nova-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fsense-nova-client/lists"}