XAI_MODEL isn't used anywhere
Describe the bug
I can see XAI_MODEL in docs here and there, but from what I can find here https://github.com/search?q=org%3Aai16z+XAI_MODEL&type=code, there's no code using it at all.
Can anyone from the team confirm it? If so, can we remove it from the docs? As it's kind of confusing to users.
To Reproduce
Expected behavior
Screenshots
Additional context
I assume that XAI_MODEL is there to define any custom LLM (for example meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo). The model will be automatically downloaded from HuggingFace.
The model can then be set in .character.json file
The issue regarding "XAI_MODEL" not being used anywhere in the project can be analyzed as follows:
-
Key Files:
- The
agent/index.tsfile is responsible for registering an agent runtime, which may be relevant to how models are utilized in the project. - The
client/Agent.tsxfile acts as a provider for agent actions, which could also relate to the usage of models.
- The
-
References to "XAI_MODEL":
- There is a discussion document that mentions the X-ai project, which focuses on backend service integrations related to AI agent trading pipelines. This document may provide insights into how "XAI_MODEL" is intended to be used.
- Path:
docs/community/Discord/the_arena/discussion/chat_2024-12-07.md
- Path:
- Additionally, there is a type definition for various models, which includes configurations that may involve "XAI_MODEL".
- Path:
docs/docs/api/type-aliases/Models.md
- Path:
- There is a discussion document that mentions the X-ai project, which focuses on backend service integrations related to AI agent trading pipelines. This document may provide insights into how "XAI_MODEL" is intended to be used.
since is a provider like al the others (OAI, Anthropic) We could think to fix this by adding in
- **File**: `packages/core/src/models.ts`
- **Action**: Add **XAI_MODEL** to the model configurations.
- **Code Snippet**:
```typescript
export const models = {
XAI_MODEL: {
endpoint: 'https://api.xai.com/v1',
apiKey: process.env.XAI_API_KEY,
},
// Other models...
};
This is not a bug and i considered it closed.