eliza icon indicating copy to clipboard operation
eliza copied to clipboard

XAI_MODEL isn't used anywhere

Open oxSaturn opened this issue 1 year ago • 1 comments

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

oxSaturn avatar Dec 06 '24 07:12 oxSaturn

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

yousafkh avatar Dec 11 '24 10:12 yousafkh

The issue regarding "XAI_MODEL" not being used anywhere in the project can be analyzed as follows:

  1. Key Files:

    • The agent/index.ts file is responsible for registering an agent runtime, which may be relevant to how models are utilized in the project.
    • The client/Agent.tsx file acts as a provider for agent actions, which could also relate to the usage of models.
  2. 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
    • 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

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...
     };

AIFlowML avatar Jan 03 '25 03:01 AIFlowML

This is not a bug and i considered it closed.

AIFlowML avatar Jan 06 '25 06:01 AIFlowML