We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I wish to experiment with other LLM models like Tongyi or Claude, but it's not feasible.
midscene/packages/midscene/src/ai-model/openai/index.ts
Line 94 in 863e5a5
Provide a solution akin to browser-use, allowing the integration of custom models.
import { OpenAI } from "@langchain/openai"; const llm = new OpenAI({ model: "gpt-3.5-turbo-instruct", temperature: 0, maxTokens: undefined, timeout: undefined, maxRetries: 2, apiKey: process.env.OPENAI_API_KEY, // other params... }); const mid = new PuppeteerAgent(page,{llm});
The text was updated successfully, but these errors were encountered:
Try these params: https://midscenejs.com/model-provider.html
That should work for you.
Sorry, something went wrong.
No branches or pull requests
Background
I wish to experiment with other LLM models like Tongyi or Claude, but it's not feasible.
midscene/packages/midscene/src/ai-model/openai/index.ts
Line 94 in 863e5a5
Aspiration
Provide a solution akin to browser-use, allowing the integration of custom models.
Benefits
The text was updated successfully, but these errors were encountered: