lmstudio-config-example.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "$schema": "https://opencode.ai/config.json",
  3. "provider": {
  4. "lmstudio": {
  5. "npm": "@ai-sdk/openai-compatible",
  6. "name": "LM Studio (Local)",
  7. "options": {
  8. "baseURL": "http://127.0.0.1:1234/v1"
  9. },
  10. "models": {
  11. "qwen3-coder-30b": {
  12. "name": "Qwen3-Coder-30B (Local)",
  13. "tools": true,
  14. "limit": {
  15. "context": 24000,
  16. "output": 4000
  17. },
  18. "options": {
  19. "temperature": 0.1,
  20. "topP": 0.8,
  21. "minP": 0.01,
  22. "repetitionPenalty": 1.05,
  23. "frequencyPenalty": 0,
  24. "presencePenalty": 0
  25. }
  26. },
  27. "gpt-oss-20b": {
  28. "name": "GPT-OSS-20B (Local)",
  29. "tools": true,
  30. "limit": {
  31. "context": 16000,
  32. "output": 4000
  33. },
  34. "options": {
  35. "temperature": 0.4,
  36. "topP": 0.9,
  37. "minP": 0.05,
  38. "repetitionPenalty": 1.05,
  39. "frequencyPenalty": 0,
  40. "presencePenalty": 0
  41. }
  42. }
  43. }
  44. }
  45. },
  46. "model": "lmstudio/qwen3-coder-30b",
  47. "agents": {
  48. "build": {
  49. "mode": "primary",
  50. "description": "Main build agent for code generation and fixes"
  51. }
  52. }
  53. }