Merge pull request #6685 from continuedev/pe/fix-grok
fix: use correct provider name for xAI
This commit is contained in:
commit
52ee4a4f25
4 changed files with 9 additions and 9 deletions
|
|
@ -9,18 +9,18 @@ slug: ../xai
|
|||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **grok-2-latest** as your chat model. For information on other available models, visit [xAI Documentation](https://docs.x.ai/docs/models).
|
||||
We recommend configuring **grok-4** as your chat model. For information on other available models, visit [xAI Documentation](https://docs.x.ai/docs/models).
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Config">
|
||||
Add the [xAI Grok 2 model block](https://hub.continue.dev/xai/grok-2) on the hub.
|
||||
Add the [xAI Grok 4 model block](https://hub.continue.dev/xai/grok-4) on the hub.
|
||||
</Tab>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Grok 2
|
||||
- name: Grok 4
|
||||
provider: xAI
|
||||
model: grok-2-latest
|
||||
model: grok-4
|
||||
apiKey: <YOUR_XAI_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
|
|
@ -29,9 +29,9 @@ We recommend configuring **grok-2-latest** as your chat model. For information o
|
|||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Grok 2",
|
||||
"title": "Grok 4",
|
||||
"provider": "xAI",
|
||||
"model": "grok-2-latest",
|
||||
"model": "grok-4",
|
||||
"apiKey": "<YOUR_XAI_API_KEY>"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@continuedev/openai-adapters",
|
||||
"version": "1.0.45",
|
||||
"version": "1.0.46",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export function constructLlmApi(config: LLMConfig): BaseLlmApi | undefined {
|
|||
return new LlamastackApi(config);
|
||||
case "continue-proxy":
|
||||
return new ContinueProxyApi(config);
|
||||
case "x-ai":
|
||||
case "xAI":
|
||||
return openAICompatible("https://api.x.ai/v1/", config);
|
||||
case "voyage":
|
||||
return openAICompatible("https://api.voyageai.com/v1/", config);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export const OpenAIConfigSchema = BasePlusConfig.extend({
|
|||
z.literal("sambanova"),
|
||||
z.literal("text-gen-webui"),
|
||||
z.literal("vllm"),
|
||||
z.literal("x-ai"),
|
||||
z.literal("xAI"),
|
||||
z.literal("scaleway"),
|
||||
z.literal("ncompass"),
|
||||
z.literal("relace"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue