Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the model support calling a specified address? #124

Open
0xd3d opened this issue Mar 5, 2025 · 5 comments
Open

Can the model support calling a specified address? #124

0xd3d opened this issue Mar 5, 2025 · 5 comments
Labels
enhancement New feature or request

Comments

@0xd3d
Copy link

0xd3d commented Mar 5, 2025

Can the model support calling a specified address?
current .env.example How to set the API call address for the corresponding model when the file only contains the model's Key settings?

@0xd3d 0xd3d added the enhancement New feature or request label Mar 5, 2025
@leetechguru
Copy link

The project already includes an AI model selection feature, allowing users to choose the model dynamically.
The API call address might be handled internally based on the selected model, while the .env.example file only provides key settings.

@0xd3d
Copy link
Author

0xd3d commented Mar 6, 2025

Brother, can you elaborate on the internal processing you mentioned? Do you mean the part of the open-source code, or what do you mean?

@MC-intel
Copy link

MC-intel commented Mar 6, 2025

Good question! If you want to set the API call address dynamically, you might need to extend the .env file to include an explicit MODEL_API_URL variable. Then, modify the code to use this value when making requests. Would that approach work for your use case?

@hiwanz
Copy link

hiwanz commented Mar 7, 2025

Need OPENAI_BASE_URL in .env file to custom openai compatible service like OpenRouter

@0xd3d
Copy link
Author

0xd3d commented Mar 7, 2025

Good question! If you want to set the API call address dynamically, you might need to extend the .env file to include an explicit MODEL_API_URL variable. Then, modify the code to use this value when making requests. Would that approach work for your use case?问得好!如果您想动态设置 API 调用地址,可能需要扩展 .env 文件,在其中加入一个明确的 MODEL_API_URL 变量。然后修改代码,以便在请求时使用该值。这种方法适用于您的使用情况吗?

Yes, this function is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants