Title: How to set the list of models that can be used · Issue #150 · sqlchat/sqlchat · GitHub
Open Graph Title: How to set the list of models that can be used · Issue #150 · sqlchat/sqlchat
X Title: How to set the list of models that can be used · Issue #150 · sqlchat/sqlchat
Description: Is your feature request related to a problem? Using LLM models provided by different companies with OpenAI API. Describe the solution you'd like For example there are LLM aggregators such as OpenRouter. You can access it by OpenAI API. H...
Open Graph Description: Is your feature request related to a problem? Using LLM models provided by different companies with OpenAI API. Describe the solution you'd like For example there are LLM aggregators such as OpenRo...
X Description: Is your feature request related to a problem? Using LLM models provided by different companies with OpenAI API. Describe the solution you'd like For example there are LLM aggregators such as Op...
Opengraph URL: https://github.com/sqlchat/sqlchat/issues/150
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to set the list of models that can be used","articleBody":"### Is your feature request related to a problem?\n\nUsing LLM models provided by different companies with OpenAI API.\n\n### Describe the solution you'd like\n\nFor example there are LLM aggregators such as OpenRouter.\r\nYou can access it by OpenAI API. Here is an example:\r\n\r\nclient = OpenAI(\r\n base_url=\"https://openrouter.ai/api/v1\",\r\n api_key=getenv(\"OPENROUTER_API_KEY\"),\r\n)\r\n\r\ncompletion = client.chat.completions.create(\r\n model=\"openchat/openchat-7b:free\",\r\n messages=[\r\n {\r\n \"role\": \"user\",\r\n \"content\": \"Say this is a test\",\r\n },\r\n ],\r\n)\r\n\r\n\r\nYou are allow to provide api_key by OPENAI_API_KEY and base_url by OPENAI_API_ENDPOINT.\r\nBut there should be also flexible way to list available models so that you can use them later in the settings.\r\n\r\n\r\nMaybe even OpenAI API allows to retrieve list of models and this would be awsome to list them.\r\n\r\n\r\n\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/ErykCh","@type":"Person","name":"ErykCh"},"datePublished":"2024-02-14T08:55:25Z","url":"https://github.com/sqlchat/sqlchat/issues/150"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1e6c2fb4-ee24-d0c0-c3ea-188a243adccf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9518:14AF70:529B09:713748:6B0471B6 |
| html-safe-nonce | 260de2a2f21d4603becef1003d552c14db128e0f3be6c69d726f4d91ac816748 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTE4OjE0QUY3MDo1MjlCMDk6NzEzNzQ4OjZCMDQ3MUI2IiwidmlzaXRvcl9pZCI6IjQ2MjE1NTgyMTMwMDYwOTQ3NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 51f7d9e30f858a15fed6b62acb9fa7209e1ca9a0d9f8f91dc1f3406b0dd061d3 |
| hovercard-subject-tag | issue:2133848303 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlchat/sqlchat/150/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0881fe92c42fd0347e20bff771b46e8ce1cc92a401c207ea0ce0f136a339dbb/sqlchat/sqlchat/issues/150 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0881fe92c42fd0347e20bff771b46e8ce1cc92a401c207ea0ce0f136a339dbb/sqlchat/sqlchat/issues/150 |
| og:image:alt | Is your feature request related to a problem? Using LLM models provided by different companies with OpenAI API. Describe the solution you'd like For example there are LLM aggregators such as OpenRo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ErykCh |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlchat/sqlchat git https://github.com/sqlchat/sqlchat.git |
| octolytics-dimension-user_id | 128299021 |
| octolytics-dimension-user_login | sqlchat |
| octolytics-dimension-repository_id | 614656648 |
| octolytics-dimension-repository_nwo | sqlchat/sqlchat |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 614656648 |
| octolytics-dimension-repository_network_root_nwo | sqlchat/sqlchat |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width